Consume agent token from AGENTK_TOKEN environment variable
Closes #277 (closed).
This MR enables the agent token to be set from AGENTK_TOKEN environment variable.
Implementation: (Same as the proposal in the issue)
- Support consuming agent token from
AGENTK_TOKEN
environment variable if the command line flag is not set. - Produce an error and exit with non-zero code if both command line flag and the variable are set.
- Unset the environment variable once copied the value from it.