mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
chore: made changes to build and fix issues
This commit is contained in:
parent
62a7c436a3
commit
5386ba3397
3 changed files with 52 additions and 11 deletions
|
|
@ -139,7 +139,7 @@ var sessionLoginCmd = &cobra.Command{
|
|||
case "yaml":
|
||||
util.PrintYAML(newSessions)
|
||||
default:
|
||||
log.Error().Msg("unrecognized output format")
|
||||
log.Error().Msg("unrecognized output sessionOutputFormat")
|
||||
os.Exit(1)
|
||||
}
|
||||
},
|
||||
|
|
@ -226,7 +226,7 @@ var sessionLogoutCmd = &cobra.Command{
|
|||
|
||||
var sessionStatusCmd = &cobra.Command{
|
||||
Use: "status",
|
||||
Example: ` // show the host's session service status in YAML format
|
||||
Example: ` // show the host's session service status in YAML sessionOutputFormat
|
||||
magellan sessions status https://172.21.0.2:5000 -u $bmc_username -p $bmc_password -i -F yaml`,
|
||||
Args: cobra.MinimumNArgs(1),
|
||||
Short: "Show the status of the session service",
|
||||
|
|
@ -283,7 +283,7 @@ var sessionListCmd = &cobra.Command{
|
|||
case FORMAT_YAML:
|
||||
util.PrintYAML(session)
|
||||
default:
|
||||
log.Error().Msg("unrecognized output format")
|
||||
log.Error().Msg("unrecognized output sessionOutputFormat")
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
|
|
@ -311,7 +311,7 @@ var sessionListCmd = &cobra.Command{
|
|||
case FORMAT_YAML:
|
||||
util.PrintYAML(sessionIDs)
|
||||
default:
|
||||
log.Error().Msg("unrecognized output format")
|
||||
log.Error().Msg("unrecognized output sessionOutputFormat")
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue