-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
CLI UX need refinements #2
Comments
Thanks, will do ! I recently switched to use cobra as a lib for command line parsing and stuff. Did you check ? The root command should list properly the subcommands as well as provide suggestion for typos.
I guess I should follow the same pattern for other commands as well ? For labels it should be: That's quite a lot of keystrokes though... I was also thinking about having a command like |
As long as there is a Y/N prompt for any default options — they wouldn't hurt. Keystrokes are handles by shell aliases, which just needs to be explained to some people. Project seems awesome. |
Yes, consistecny is important and completion should reduce the amount of keystrokes anyway.
Good idea. git already has a few interactive subcommands like |
\o/ Just so you know, I'm waiting for the core feature to stabilize and to have a consistent plan for all the commands to tackle this problem. Another question, should UX peoples, please send help :) |
Run the interactive by default. Provide |
I'd like to suggest some additional commands for actions that do not seem currently possible:
My main point is that it is important to be able to modify the state in all possible ways before it is pushed to the remote. |
@jlegeny that's a good point. Technically if possible to implement |
With the previous comments, I tried to summon my inner UX guy and devise a plan: Current situation
Problems/questions
New shinny planAs before
Changed
Removed
Added
select mechanism
What do you all think ? |
How about |
@j-f1 you would have no commands to see the label of a bug. Also, consistency and predictability are paramount for a good UX. |
The downside of this new approach is that the commands are quite long. This is mitigated by the command auto-completion and the termUI though. Another way would be to have a short alias to the |
Alright, I made the "safe" changes, as detailed above. The missing parts are either completely new commands or things I'm unsure about. Please have a test and give me some feedback. |
What are your plans for a
Also, I think that having connivance flags to update the config from other commands makes sense. In #62 I suggested using |
Why not use the regular |
For some settings, I think that makes a lot of sense, but not all of these configuration options can be stored in a local config file. In particular, modifying the set of allowed labels seems like it needs to be more closely integrated with git bug. |
Let's move the config discussion here: #63 |
* return error, don't panic * skipping status export is an error * use switch in config.go * move PromptPassword to input * move client construction into getIdentityClient * use non-pointer context throughout client since it is an interface * remove some TODOs * don't emit multiple nothing-events, just one per bug only if nothing happened. * rename EditBody to EditCreateComment * add configuration notes about additional values * sore bug id map in a dictionary in the config
* return error, don't panic * skipping status export is an error * use switch in config.go * move PromptPassword to input * move client construction into getIdentityClient * use non-pointer context throughout client since it is an interface * remove some TODOs * don't emit multiple nothing-events, just one per bug only if nothing happened. * rename EditBody to EditCreateComment * add configuration notes about additional values * store bug id map in a dictionary in the config * some fixes from testing
* return error, don't panic * skipping status export is an error * use switch in config.go * move PromptPassword to input * move client construction into getIdentityClient * use non-pointer context throughout client since it is an interface * remove some TODOs * don't emit multiple nothing-events, just one per bug only if nothing happened. * rename EditBody to EditCreateComment * add configuration notes about additional values * store bug id map in a dictionary in the config * some fixes from testing
To be consistent with git core, I suggest the following commands and behaviours:
git bug
lists bugs (replacesgit bug ls
)(similar behaviour toremote
andbranch
)git bug --help
shows available commands (replacesgit bug commands
)git bug add
creates a new report (replacesgit bug new
as commands should be verbs)The text was updated successfully, but these errors were encountered: