command/remote: Improve UI output for remote
This commit is contained in:
parent
cdc89f3589
commit
07e5f3ff41
|
@ -48,6 +48,13 @@ func (c *RemoteCommand) Run(args []string) int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Show help if given no inputs
|
||||||
|
if !c.conf.disableRemote && c.remoteConf.Type == "atlas" &&
|
||||||
|
name == "" && accessToken == "" {
|
||||||
|
cmdFlags.Usage()
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
// Populate the various configurations
|
// Populate the various configurations
|
||||||
c.remoteConf.Config = map[string]string{
|
c.remoteConf.Config = map[string]string{
|
||||||
"address": address,
|
"address": address,
|
||||||
|
|
Loading…
Reference in New Issue