ssh: Add support for holdings command

pull/133/head
Miguel Mota 3 years ago
parent 11e2efc9af
commit f127de3048
No known key found for this signature in database
GPG Key ID: 67EC1161588A00F9

@ -169,11 +169,22 @@ func (s *Server) ListenAndServe() error {
colorsDir,
}
for i, arg := range cmdUserArgs {
if i == 0 {
continue
if len(cmdUserArgs) > 0 {
if cmdUserArgs[0] == "cointop" {
cmdUserArgs = cmdUserArgs[1:]
}
}
if len(cmdUserArgs) > 0 {
if cmdUserArgs[0] == "holdings" {
flags = []string{
"--config",
configPath,
}
}
}
for _, arg := range cmdUserArgs {
flags = append(flags, arg)
}

Loading…
Cancel
Save