collie icon indicating copy to clipboard operation
collie copied to clipboard

Add support for environment variables

Open ohad opened this issue 4 years ago • 2 comments

Commands can expect environment variables to be set, and these are available to the handler. The environment variables can be typed, and will be parsed before being handed to the handler.

(proposed by @eayus )

ohad avatar Feb 22 '22 14:02 ohad

Unlike arguments, these may more often apply to many or all commands. Not sure if/how that needs to factor in, but seems worth thinking about in the course of designing this.

mattpolzin avatar Feb 22 '22 14:02 mattpolzin

Yes, I wonder whether these should be indexed in reverse (a node in the tree has an env. variable associated with it, and it's shared with its subcommands).

ohad avatar Feb 22 '22 14:02 ohad