I like the idea of putting each command in an ishell.Cmd.
Yeah, I wasn't sure about the struct. Basically, I wanted an easy way to
map my code
so, I was thinking a yaml file (I suppose I can create a struct from it).
- clear
- greet
- user
- (no user) #if no user is specified then greet al
Consider putting each ishell.Cmd in a separate file. Otherwise you can put
them in a slice var so you don’t have to AddCmd each one explicitly.
I’m not sure what defining a struct accomplishes, can you provide more
detail?
Matt
On Tuesday, April 17, 2018 at 8:25:17 PM UTC-5, Keith Brown wrote: