Skip to content

Conversation

@ethangreen-dev
Copy link
Member

@ethangreen-dev ethangreen-dev commented Jun 12, 2025

This allows structured arguments to be passed from external tooling (mod managers, etc.) in a way that closely mirrors normal positional arguments. JSON mode is enabled by passing the --json argument.

For example, tcli --json '{"add":{"packages":["JereKuusela-Expand_World-1.56.0"],"project_path":"./","sync":false}}' mirrors the tcli add JereKuusela-Expand_world-1.56.0 command.

This allows structured arguments to be passed from external tooling
(mod managers, etc.) in a way that closely mirrors normal
positional arguments. JSON mode is enabled by passing the `--json`
argument.
use crate::project::lock::LockFile;
use crate::project::overrides::ProjectOverrides;
use crate::project::Project;
use crate::ts::experimental;

Check warning

Code scanning / clippy

unused import: crate::ts::experimental Warning

unused import: crate::ts::experimental
@ethangreen-dev ethangreen-dev merged commit 41489e2 into develop Jun 12, 2025
3 of 5 checks passed
@ethangreen-dev ethangreen-dev deleted the json-cli-arg branch June 12, 2025 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants