GoGPT Best VPN GoSearch

OnWorks 网站图标

prtp - 云端在线

通过 Ubuntu Online、Fedora Online、Windows 在线模拟器或 MAC OS 在线模拟器在 OnWorks 免费托管服务提供商中运行 prtp

这是可以使用我们的多个免费在线工作站之一在 OnWorks 免费托管服务提供商中运行的命令 prtp,例如 Ubuntu Online、Fedora Online、Windows 在线模拟器或 MAC OS 在线模拟器

程序:

您的姓名


prt - App::PRT 的命令行前端

概要


$ prt
$ prt

商品描述


prt 是 App::PRT 的命令行前端。

子命令


·replace_token

用“bar”替换“foo”标记。

prt replace_token foo 栏

用“bar”替换“foo”标记,但目标语句必须有“bazz”标记。

prt Replace_token foo bar --in-statement bazz

· 重命名类

将“Foo”类重命名为“Bar”类。

prt rename_class Foo 酒吧

· 重命名命名空间

将“Foo”和“Foo::*”类重命名为“Bar”和“Bar::*”类。

prt rename_namespace Foo 酒吧

· 删除方法

从“食物”类中删除“吃”方法。

prt delete_method 食物吃

· 移动类_方法

将“Class”类中的“method”方法移动到“AnotherClass”中的“another_method”方法。
“Class”的包被复制到“AnotherClass”。

prt move_class_method 'Class#method' 'AnotherClass#another_method'

TARGET FILES


您可以指定要重构的目标文件。

prt replace_token foo bar lib/**/**.pm t/*.t # 重构 lib/ 中的 Perl 模块和 t/ 中的测试文件

如果没有目标文件,“App::PRT”会自动收集项目中的源代码。
“App::PRT”搜索“cpanfile”以检测项目根目录。 在 git 中执行时
存储库,存储库中的所有文件都被使用。

prt replace_token foo bar # 重构当前工作目录下的项目

使用 onworks.net 服务在线使用 prtp


免费服务器和工作站

下载 Windows 和 Linux 应用程序

Linux 命令

Ad




×
广告
❤️在这里购物、预订或购买——免费,有助于保持服务免费。