You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance iii-cli update functionality and documentation (#1)
- Updated README.md to clarify update commands for iii-cli and managed binaries.
- Modified cli.rs to reflect new self-update commands and improve help text.
- Implemented self-update functionality in update.rs to allow iii-cli to update itself.
- Adjusted main.rs to handle self-update logic and notify users after updating.
- Added SELF_SPEC for iii-cli in registry.rs to manage its update process and ensure platform support.
- Included tests for SELF_SPEC to validate its properties and ensure it is not part of the binary registry.
Copy file name to clipboardExpand all lines: src/cli.rs
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ use clap::{Parser, Subcommand};
5
5
name = "iii-cli",
6
6
about = "Unified CLI dispatcher for iii tools",
7
7
version,
8
-
after_help = "COMMANDS:\n console Launch the iii web console\n create Create a new iii project from a template\n motia Create a new Motia project from a template\n start Start the iii process communication engine\n update Update managed binaries to their latest versions\n list Show installed binaries and their versions"
8
+
after_help = "COMMANDS:\n console Launch the iii web console\n create Create a new iii project from a template\n motia Create a new Motia project from a template\n start Start the iii process communication engine\n update Update iii-cli and managed binaries to their latest versions\n list Show installed binaries and their versions\n\nSELF-UPDATE:\n iii-cli update Update iii-cli + all managed binaries\n iii-cli update self Update only iii-cli\n iii-cli update iii-cli Update only iii-cli\n iii-cli update console Update only iii-console"
9
9
)]
10
10
pubstructCli{
11
11
/// Disable background update and advisory checks
@@ -62,10 +62,11 @@ pub enum Commands {
62
62
args:Vec<String>,
63
63
},
64
64
65
-
/// Update managed binaries to their latest versions
65
+
/// Update iii-cli and managed binaries to their latest versions
66
66
Update{
67
-
/// Specific command or binary to update (e.g., "console", "create").
68
-
/// If omitted, updates all installed binaries.
67
+
/// Specific command or binary to update (e.g., "console", "self").
68
+
/// Use "self" or "iii-cli" to update only iii-cli.
69
+
/// If omitted, updates iii-cli and all installed binaries.
0 commit comments