lit icon indicating copy to clipboard operation
lit copied to clipboard

Integrate help commands into RPC

Open Varunram opened this issue 6 years ago • 5 comments

Right now, the help commands are all over the place. It brings value to consolidate all of them in one place and allow them to be called from there. This is especially true for lit-af, where most commands need interaction from inside the interface. This could also be done via a separate CLI for lit where the CLI thing does e everything lit-af does, but via the command line directly without requiring direct interaction with lit-af. Also could help the doc gen stuff since that's hardcoded now.

Varunram avatar Jun 28 '18 07:06 Varunram

Could we have lit-af just directly run the command if it's given something like a -c option and then the command (a la Bash)? It seems a bit redundant to make another program that does one-offs.

delbonis avatar Jun 29 '18 17:06 delbonis

Yeah, I guess calling bash and executing lit-af from there should work. But would that be a separate arg to lit that when passed executes the shell script?

Varunram avatar Jun 29 '18 18:06 Varunram

I meant how if you say bash -c cat /etc/passwd, it'll tell Bash to run that command. I'm suggesting that if you run lit-af -c lis 1337 it'll invoke that command instead of starting the normal lit-af shell.

delbonis avatar Jun 29 '18 18:06 delbonis

Yes, I got that but it falls back to another method for hardcoding the args since I'd have to call all the lit-af commands individually :(

Varunram avatar Jun 29 '18 18:06 Varunram

Wait so do you want to fork Bash? Maybe I'm not understanding what you want as an end goal here.

delbonis avatar Jun 29 '18 18:06 delbonis