Update auth token short and long
This commit is contained in:
parent
2c72647cf7
commit
dbff555835
1 changed files with 4 additions and 2 deletions
|
|
@ -27,11 +27,13 @@ func NewCmdToken(f *cmdutil.Factory, runF func(*TokenOptions) error) *cobra.Comm
|
|||
|
||||
cmd := &cobra.Command{
|
||||
Use: "token",
|
||||
Short: "Print the authentication token gh is configured to use",
|
||||
Short: "Print the authentication token gh uses for a hostname and account",
|
||||
Long: heredoc.Docf(`
|
||||
This command outputs the authentication token for an account on a given GitHub host.
|
||||
|
||||
Without the %[1]s--user%[1]s flag, the token for the currently active user is printed.
|
||||
Without the %[1]s--hostname%[1]s flag, the default host is chosen.
|
||||
|
||||
Without the %[1]s--user%[1]s flag, the currently active account for the host is chosen.
|
||||
`, "`"),
|
||||
Args: cobra.ExactArgs(0),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue