I’m working on something were I want to “verify” a command. The command wouldn’t necessarily be known, or from a CommandSpec. I was wondering if (besides checking the commands existence), there was any other way to verify it. Moreover, I’d especially like to pass in a fully argument-ed command and receive either:
- A boolean/object representing the “parse result”
- A boolean being true if the command exists, and false otherwise
or both.
Another thing: how does sponge determine the (base) name of the command? Is the name of the command simply the characters up to the first space, or are other parsing facilities implemented?
I haven’t looked into any of this a huge amount, so any help is appreciated!