Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group some commands and add aliases #143

Open
rugabarbo opened this issue Dec 7, 2020 · 5 comments
Open

Group some commands and add aliases #143

rugabarbo opened this issue Dec 7, 2020 · 5 comments

Comments

@rugabarbo
Copy link
Member

Current state

Now the commands look like this:

20 12 07-14 19 45

Proposal

  1. Group ungrouped commands.
  2. Create aliases for frequently used commands.

Plan

  1. Group commands (rename):
  • exec -> shell/exec
  • install -> package/install
  • update -> package/update
  • lint -> package/lint
  • test -> package/test
  1. Create aliases:
Command Alias How call will look
composer/fix-dependencies
git/checkout-branch co ./yii-dev co master yii-demo,db,arrays
git/commit c ./yii-dev c "Add ability to use feature X" yii-demo,db,arrays
git/pr/create pr ./yii-dev pr "My first yii3 PR" yii-demo,db,arrays
git/pull pull ./yii-dev pull yii-demo,db,arrays
git/push push ./yii-dev push yii-demo,db,arrays
git/status ss ./yii-dev ss yii-demo,db,arrays
github/settings
release/make
package/install
package/lint lint ./yii-dev lint yii-demo,db,arrays
release/make
package/test test ./yii-dev test yii-demo,db,arrays
package/update upd ./yii-dev upd yii-demo,db,arrays
replicate/composer-config
replicate/copy-file
replicate/files
travis/ensure-cronjob
travis/update-slack-config
shell/exec
@rugabarbo
Copy link
Member Author

We can also create a script with a short name in the root. For example, "./t" - the first letter of the word "tool" is used.

Then the call to PR command will look like this:
./t pr "My first yii3 PR" yii-demo,db,arrays

Now it looks like this:
./yii-dev git/pr/create "My first yii3 PR" yii-demo,db,arrays

@samdark
Copy link
Member

samdark commented Dec 7, 2020

I am unable to remember one or two letter aliases such as c, co, ss.

I'd propose:

Command Alias How call will look
composer/fix-dependencies
git/checkout-branch checkout ./yii-dev checkout master yii-demo,db,arrays
git/commit commit ./yii-dev commit "Add ability to use feature X" yii-demo,db,arrays
git/pr/create pr ./yii-dev pr "My first yii3 PR" yii-demo,db,arrays
git/pull pull ./yii-dev pull yii-demo,db,arrays
git/push push ./yii-dev push yii-demo,db,arrays
git/status status ./yii-dev status yii-demo,db,arrays
github/settings
release/make
package/install install ./yii-dev install yii-demo,db,arrays
package/lint lint ./yii-dev lint yii-demo,db,arrays
package/test test ./yii-dev test yii-demo,db,arrays
package/update update ./yii-dev update yii-demo,db,arrays
replicate/composer-config
replicate/copy-file
replicate/files
travis/ensure-cronjob
travis/update-slack-config
shell/exec exec ./yii-dev exec "ls -l"

@samdark
Copy link
Member

samdark commented Dec 7, 2020

btw., we can remove travis* now. We've mostly switched to GitHub actions.

@samdark
Copy link
Member

samdark commented Dec 7, 2020

git/pr/create should likely be grouped into github/pr.

@samdark
Copy link
Member

samdark commented Sep 15, 2021

Partially fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants