Question: Is it possible to do a slice of commands (each with their arguments and flags)? #260
-
Something like given than cmd update have entity as argument and v as flag, and print has entity as argument Another (similar) question:
csv would be argument 1 command with filename as argument, json would be argument 2 command with filename - (stdout) Sorry if stupid questions, really like the idea of kong but not sure i understand it enough /T |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi, no this is not possible. |
Beta Was this translation helpful? Give feedback.
-
I think this is similar to #145. And I was also thinking of this. Not as slice of commands, but slice of structs. So for example, if I have struct like: type Config struct {
Servers []Server
}
type Server struct {
Port int
Host string
} It would be nice to be able to run |
Beta Was this translation helpful? Give feedback.
Hi, no this is not possible.