mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 12:45:47 +00:00
docs: update usage messages of all cobra commands
This commit is contained in:
+3
-2
@@ -14,8 +14,9 @@ var czCmd = &cobra.Command{
|
||||
Use: "cz",
|
||||
Short: "Allows for commitizen commit messages",
|
||||
Long: `This command will allow the user to use commitizen to craft the commit message
|
||||
after which the user will be able to add co-authors to the commit message. This will require
|
||||
the user to have commitizen installed on their system.`,
|
||||
after which the user will be able to add co-authors to the commit message. This command defaults
|
||||
to the TUI author selection but flags can be used to make it use the cli syntax.
|
||||
This will require the user to have commitizen installed on their system.`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
var message string
|
||||
var authors []string
|
||||
|
||||
+7
-6
@@ -14,12 +14,13 @@ import (
|
||||
// rootCmd represents the base command when called without any subcommands
|
||||
// func RootCmd() *cobra.Command {
|
||||
var rootCmd = &cobra.Command{
|
||||
Use: `cocommit <commit message> <co-author1> [co-author2] ... ||
|
||||
cocommit <commit message> <co-author1:email> [co-author2:email] ... ||
|
||||
cocommit <commit message> all ||
|
||||
cocommit <commit message> ^<co-author1> ^[co-author2] ... ||
|
||||
cocommit <commit message> <group> ||
|
||||
cocommit users ||`,
|
||||
Use: `cocommit *Opens the TUI*
|
||||
cocommit <commit message> <co-author1> [co-author2] ...
|
||||
cocommit <commit message> <co-author1:email> [co-author2:email] ...
|
||||
cocommit <commit message> all
|
||||
cocommit <commit message> ^<co-author1> ^[co-author2] ...
|
||||
cocommit <commit message> <group>
|
||||
cocommit users `,
|
||||
DisableFlagsInUseLine: true,
|
||||
Short: "A cli tool to help you add co-authors to your git commits",
|
||||
Long: `A cli tool to help you add co-authors to your git commits`,
|
||||
|
||||
+2
-2
@@ -19,8 +19,8 @@ var authorfile = utils.Find_authorfile()
|
||||
func UsersCmd() *cobra.Command {
|
||||
return &cobra.Command{
|
||||
Use: "users",
|
||||
Short: "Displays all users from the author file located at: " + authorfile,
|
||||
Long: `Displays all users from the author file located at: ` + authorfile,
|
||||
Short: "Displays all users from the author file located at:\n" + authorfile,
|
||||
Long: `Displays all users from the author file located at:` + "\n" + authorfile,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
//TODO: make this print a bit prettier (sort it and maybe use a table)
|
||||
// check if the no pretty print flag is set
|
||||
|
||||
Reference in New Issue
Block a user