|
1 | 1 | use clap::{Parser, Subcommand};
|
2 | 2 |
|
| 3 | +/** |
| 4 | +horizon init # Initializes the Horizon environment locally |
| 5 | +
|
| 6 | +horizon list-gpus # Lists available GPUs in the Horizon marketplace |
| 7 | +horizon rent <gpu_id> --duration <hours> [--price <price>] # Rent a GPU for a specified duration |
| 8 | +horizon submit-job <gpu_id> --job <job_file> # Submit a job for execution on a specified GPU |
| 9 | +horizon bid <gpu_id> --price <price> # Place a bid for a GPU rental |
| 10 | +horizon auction start <gpu_id> --duration <duration> # Start an auction for a GPU |
| 11 | +horizon auction end <gpu_id> # End an auction for a GPU |
| 12 | +horizon status <job_id> # Retrieve the status of a job submitted to the marketplace |
| 13 | +horizon cancel-job <job_id> # Cancel a job in progress |
| 14 | +
|
| 15 | +horizon config --set <key> <value> # Set a configuration option (e.g., price limits, security keys) |
| 16 | +horizon config --get <key> # Retrieve a configuration value |
| 17 | +
|
| 18 | +horizon network status # Check the status of the Horizon network and nodes |
| 19 | +horizon network connect <node_id> # Connect to a specific node in the network |
| 20 | +horizon network disconnect <node_id> # Disconnect from a node in the network |
| 21 | +
|
| 22 | +horizon marketplace sync # Synchronize local data with the decentralized GPU marketplace |
| 23 | +horizon marketplace update # Update local GPU listings from the marketplace |
| 24 | +
|
| 25 | +horizon register-gpu --gpu-id <gpu_id> --gpu-type <type> --price <price> # Register a GPU for rental |
| 26 | +horizon deregister-gpu <gpu_id> # Deregister a GPU from the marketplace |
| 27 | +
|
| 28 | +horizon explore <gpu_id> [--filter <json_path>] # Interactively explore the details of a GPU |
| 29 | +
|
| 30 | +horizon logs # Display logs for Horizon operations and node status |
| 31 | +horizon logs clear # Clear the local logs |
| 32 | +
|
| 33 | +horizon version # Displays the Horizon CLI version |
| 34 | +horizon <command> --help # Shows help for a specific command |
| 35 | +*/ |
| 36 | + |
3 | 37 | #[derive(Parser)]
|
4 | 38 | #[clap(version, name = "horizon", long_about = None)]
|
5 | 39 | pub struct Cli {
|
|
0 commit comments