Skip to content

Commit fd2ce00

Browse files
0xrinegadeclaude
andcommitted
refactor(rpc): rename rpc-manager command to rpc for brevity
Simplify command name from 'osvm rpc-manager' to 'osvm rpc' for better user experience and consistency with other CLI tools. Changes: - Rename Command::new("rpc-manager") to Command::new("rpc") in clparse.rs - Update command check in main.rs from "rpc-manager" to "rpc" - Update module documentation in rpc_manager.rs Usage: - Old: osvm rpc-manager devnet --background - New: osvm rpc devnet --background 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent ed9ccd2 commit fd2ce00

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/clparse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ Issues & feedback: https://github.com/opensvm/osvm-cli/issues")
221221
)
222222
// RPC management commands
223223
.subcommand(
224-
Command::new("rpc-manager") // Renamed from "rpc" to "rpc-manager"
224+
Command::new("rpc")
225225
.about("Manage RPC nodes (local/remote)")
226226
.arg_required_else_help(true)
227227
.subcommand( // Moved sonic to be first

src/commands/rpc_manager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
//! RPC Manager command handlers
1+
//! RPC command handlers
22
//!
3-
//! This module handles all rpc-manager subcommands including:
3+
//! This module handles all rpc subcommands including:
44
//! - sonic: Deploy Sonic RPC via SSH
55
//! - query-solana: Query Solana network
66
//! - local: Start local RPC

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,8 +1271,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
12711271
return handle_ovsm_command(sub_matches).await;
12721272
}
12731273

1274-
// Handle RPC manager early - it generates its own keypairs and doesn't need default config
1275-
if sub_command == "rpc-manager" {
1274+
// Handle RPC early - it generates its own keypairs and doesn't need default config
1275+
if sub_command == "rpc" {
12761276
return commands::rpc_manager::handle_rpc_manager(sub_matches).await.map_err(|e| e.into());
12771277
}
12781278

0 commit comments

Comments
 (0)