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",
|
Use: "cz",
|
||||||
Short: "Allows for commitizen commit messages",
|
Short: "Allows for commitizen commit messages",
|
||||||
Long: `This command will allow the user to use commitizen to craft the commit message
|
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
|
after which the user will be able to add co-authors to the commit message. This command defaults
|
||||||
the user to have commitizen installed on their system.`,
|
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) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
var message string
|
var message string
|
||||||
var authors []string
|
var authors []string
|
||||||
|
|||||||
+7
-6
@@ -14,12 +14,13 @@ import (
|
|||||||
// rootCmd represents the base command when called without any subcommands
|
// rootCmd represents the base command when called without any subcommands
|
||||||
// func RootCmd() *cobra.Command {
|
// func RootCmd() *cobra.Command {
|
||||||
var rootCmd = &cobra.Command{
|
var rootCmd = &cobra.Command{
|
||||||
Use: `cocommit <commit message> <co-author1> [co-author2] ... ||
|
Use: `cocommit *Opens the TUI*
|
||||||
cocommit <commit message> <co-author1:email> [co-author2:email] ... ||
|
cocommit <commit message> <co-author1> [co-author2] ...
|
||||||
cocommit <commit message> all ||
|
cocommit <commit message> <co-author1:email> [co-author2:email] ...
|
||||||
cocommit <commit message> ^<co-author1> ^[co-author2] ... ||
|
cocommit <commit message> all
|
||||||
cocommit <commit message> <group> ||
|
cocommit <commit message> ^<co-author1> ^[co-author2] ...
|
||||||
cocommit users ||`,
|
cocommit <commit message> <group>
|
||||||
|
cocommit users `,
|
||||||
DisableFlagsInUseLine: true,
|
DisableFlagsInUseLine: true,
|
||||||
Short: "A cli tool to help you add co-authors to your git commits",
|
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`,
|
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 {
|
func UsersCmd() *cobra.Command {
|
||||||
return &cobra.Command{
|
return &cobra.Command{
|
||||||
Use: "users",
|
Use: "users",
|
||||||
Short: "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: ` + authorfile,
|
Long: `Displays all users from the author file located at:` + "\n" + authorfile,
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
//TODO: make this print a bit prettier (sort it and maybe use a table)
|
//TODO: make this print a bit prettier (sort it and maybe use a table)
|
||||||
// check if the no pretty print flag is set
|
// check if the no pretty print flag is set
|
||||||
|
|||||||
Reference in New Issue
Block a user