Add stack logs/services and variable management CLI commands#1
Add stack logs/services and variable management CLI commands#1
Conversation
Co-authored-by: FarisZR <35614734+FarisZR@users.noreply.github.com>
Co-authored-by: FarisZR <35614734+FarisZR@users.noreply.github.com>
|
@copilot Add support for piping the secret value from external commands, like for example getting the value through running "openssl rand -hex 32", also disable the ability to show a secret value unless the env variable "KM_SHOW_SECRETS=true" is there. |
Co-authored-by: FarisZR <35614734+FarisZR@users.noreply.github.com>
Implemented in f1a8dce:
Tests pass (the CLI package has no existing unit tests, but compilation and clippy checks pass). |
|
@copilot i need to you add the following features: Procedures
Stacks
Resource syncs
configuration through env variables
make sure to document all of your changes (current and previously done in this PR) by updating the readme. |
…ure to use existing list command Co-authored-by: FarisZR <35614734+FarisZR@users.noreply.github.com>
Implemented in e523c86: Procedures: Stacks: Resource Syncs: Environment Variables:
I integrated with the existing |
|
@copilot there are still a few issues in the cli:
and also Missing features:
and also the cli crashed when running this command, related to requiring enter: make sure to update the documentation to reflect your changes and to to test thoroughly. |
Co-authored-by: FarisZR <35614734+FarisZR@users.noreply.github.com>
Addressed in c3a34e5:
README updated with clearer documentation of all flags and workflows. |
Stackcommand with subcommandlogsGetStackLogandListStackServicesAPIsstatusto show stack detailsdeploysto show deployment historydeploy-logto view specific deployment logsVariablecommand with subcommands:list,get,create,deletelist- show all variables in a tableget- show variable value with env var protection for secretscreate- create new variable with optional secret flagdelete- delete an existing variable--from-commandflag to pipe values from external commandsKM_SHOW_SECRETS=trueenv var to view secret valueskm procedure <name> status- show procedure detailskm procedure <name> logs- show procedure run historykm procedure <name> run-log <ID>- show detailed logs for a specific runkm list proceduresfor listingkm sync <name> status- show sync detailskm sync <name> logs- show sync run historykm sync <name> run-log <ID>- show detailed logs for a specific runkm sync <name> diff- show pending diffs from upstreamkm list syncsfor listingKM_KOMODO_URLalias for host configurationKM_KOMODO_API_KEYalias for API keyKM_KOMODO_API_SECRETalias for API secret-nflag behavior (shows most recent entries)-y/--yesflag for automation/scriptingrun-log/deploy-logcommandsCLI Commands
Stack Operations (
km stack <stack_name> <command>)Procedure Operations (
km procedure <name> <command>)Resource Sync Operations (
km sync <name> <command>)Run Executions with
--yesfor AutomationVariable Management (
km variable <command>)Environment Variables
KM_KOMODO_URLKM_KOMODO_API_KEYKM_KOMODO_API_SECRETKM_SHOW_SECRETStrueto view secret valuesOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.