feat: restructure CLI to object-action pattern#761
Merged
coffee-cup merged 9 commits intomasterfrom Jan 14, 2026
Merged
Conversation
- Add service subcommands: logs, restart, scale (delegates to existing commands) - Add project object with list, link, delete subcommands - Add environment link subcommand - Restructure variable command with list, set, delete subcommands - Add VariableDelete GraphQL mutation - All existing commands continue to work via aliases for backwards compat
ccb242c to
c85d6a5
Compare
# Conflicts: # src/commands/environment.rs
… order - Add ServiceContext helper to dedupe project/env/service resolution - delete_variable now requires service (consistent w/ list/set) - scale.rs: position-based arg check prevents false triggers - environment link: output after successful write()
- service.rs: remove dead code in link_command (duplicate args.service check) - service.rs: add redeploy subcommand routing - variable.rs: accept string for set cmd to support --stdin with key-only - main.rs: add more CLI parsing tests
- service link: restore case-insensitive name/id matching - variable set: support multiple KEY=val args - use create_spinner_if helper for json mode - add tests for multi-var set
Introduce FetchLogsParams struct to reduce argument count
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrates CLI to
object action --flagspattern (like kubectl/docker) while maintaining full backwards compatibility.service logs,service restart,service scale- delegates to existing commandsproject list,project link,project delete- new project objectenvironment link- explicit link subcommandvariable list,variable set KEY=VALUE,variable delete KEY- restructured with subcommandsVariableDeleteGraphQL mutationAll existing root commands (
logs,list,delete,variables,variables --set, etc.) continue to work unchanged.