Update auth token short and long

This commit is contained in:
William Martin 2023-12-04 15:56:15 +01:00
parent 2c72647cf7
commit dbff555835

View file

@ -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 {