Lola 命令行工具。

安装: 1

依赖项: 0

建议者: 0

安全: 0

星星: 1

关注者: 0

分支: 1

开放问题: 0

类型:项目

0.0.1-alpha 2024-02-29 08:08 UTC

This package is auto-updated.

Last update: 2024-09-29 09:17:21 UTC


README

Lola 是一个命令行工具,可增强您的 . 基于 Laravel-Zero 构建

特性

命令

您可以在 Lola 中构建自己的自定义命令,Lola 实质上是一个您想要快捷访问的命令列表

添加命令

lola cmd:add "install filamentphp in laravel project"

 Enter the command that you want to add (if you have finished inserting your commands type `exit`):

>>  composer require filament/filament -W

Enter the command that you want to add (if you have finished inserting your commands type `exit`):

>>  php artisan filament:install --panels

Enter the command that you want to add (if you have finished inserting your commands type `exit`):

>> exit

added a new command

执行命令

现在您可以执行此命令

lola cmd:exec 

the name of the command that you are searching for:

[install-filamentphp-in-laravel-project] install filamentphp in laravel project

>> install-filamentphp-in-laravel-project

导出命令

lola cmd:export

the name of the command that you want to export:

[install-filamentphp-in-laravel-project] install filamentphp in laravel project

>> install-filamentphp-in-laravel-project

此命令将生成一个名为 lola-commands.json 的 JSON 文件

删除命令

lola cmd:delete install-filamentphp-in-laravel-project

导入命令

lola cmd:import

The path of json file (default is lola-commands.json):

>> lola-commands.json

架构

作为一名开发者,您总是发现一些您希望经常使用的东西,例如一些代码、一些配置、支付或集成第三方包。 Lola 通过保存目录或文件使其成为可能,我们在 Lola 架构中称此为

添加架构

lola arch:add ".gitignore file for laravel"

 What is the path of your archeticture? (default is current path):
 >> .gitignore

added a new archeticture

发布架构

现在您可以发布此架构

lola arch:publish 

the name of the archeticture that you are searching for:
  [gitignore-file-for-laravel] .gitignore file for laravel

>> gitignore-file-for-laravel

导出架构

lola arch:export

the name of the archeticture that you want to export:

[gitignore-file-for-laravel] .gitignore file for laravel

>> gitignore-file-for-laravel

此架构将生成一个名为 lola-archetictures.json 的 JSON 文件

删除架构

lola arch:delete install-filamentphp-in-laravel-project

导入架构

lola arch:import

The path of json file (default is lola-archetictures.json):

>> lola-archetictures.json

许可证

Lola 命令行工具是开源软件,采用 MIT 许可证

备注

  • 如果没有命令或架构,则会出现异常,因此我需要在没有记录时进行检查
  • 需要找到一种更好的方法来打印架构
  • 添加一个命令来显示带有详细信息的命令和架构
  • 检查文件是否已存在,如果已存在,则应询问用户是否要覆盖它,并添加一些覆盖选项
  • 将其部署到 GitHub,并要求 Jawad 和 Afraa 尝试构建并为其做出贡献
  • 添加一些关于您希望在将来添加的功能的问题
  • 在 Packagist 上发布,并尝试 composer require global loaidev6/lola
  • 编写方便的文档