Skip to content
Snippets Groups Projects
Commit 353bb59e authored by ale's avatar ale
Browse files

slightly saner output format for show-mount

parent 6f388f6e
No related branches found
No related tags found
No related merge requests found
......@@ -271,7 +271,19 @@ func (cmd *showMountCommand) Run(args []string) {
if mount == nil {
log.Fatal("Mount not found")
}
fmt.Printf("%+v\n", mount)
// Print out simple key=value pairs.
fmt.Printf("path = %s\n", mount.Name)
if mount.Username != "" {
fmt.Printf("username = %s\n", mount.Username)
fmt.Printf("password = %s\n", mount.Password)
}
if mount.RelayUrl != "" {
fmt.Printf("relay_url = %s\n", mount.RelayUrl)
}
if mount.Fallback != "" {
fmt.Printf("fallback_url = %s\n", mount.Fallback)
}
}
var cmdr = &commander.Command{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment