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

Consider allowing shorthand for commands #11

Open
velovix opened this issue Oct 23, 2020 · 3 comments
Open

Consider allowing shorthand for commands #11

velovix opened this issue Oct 23, 2020 · 3 comments

Comments

@velovix
Copy link
Member

velovix commented Oct 23, 2020

Git allows users to only type part of a command if the rest of it can be unambiguously guessed. In the BrainFrame CLI this would mean that the user could type brainframe c up instead of brainframe compose up because "compose" is the only command that starts with a "c".

Pros

  • It's a relatively standard feature
  • It lets users type less

Cons

  • Additional complexity when parsing arguments
  • When we add additional commands, it could break peoples' workflows by not allowing them to use their preferred shorthand anymore

@apockill @BryceBeagle What do you think? I'm mildly in favor, mostly because compose commands can get fairly long right now.

@BryceBeagle
Copy link
Member

Could we add a check to see if the command is being run in a non-interactive shell, and throw a warning if a shorthand command is used? This could help prevent tooling/scripts from using the shorthand commands.

@velovix
Copy link
Member Author

velovix commented Oct 23, 2020

Yeah, I think we could do that!

@apockill
Copy link
Member

I'm down to clown. I already alias all my usages to bfc for brainframe compose so shorter commands are definitely a want from my end.

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

No branches or pull requests

3 participants