shine-cli 1.1.2

Cross-platform CLI for managed shell commands, app configs, and machine setup
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::update_check::ReleaseChannel;
use clap::Subcommand;

#[derive(Subcommand, Debug)]
pub enum SelfCommands {
    /// Copy the shine binary to a platform-specific install location
    Install {
        /// Destination path (default: /usr/local/bin/shine on Unix, %LOCALAPPDATA%\Programs\shine\shine.exe on Windows)
        #[arg(long, value_name = "PATH")]
        dest: Option<std::path::PathBuf>,
    },
    /// Download and install a shine release for this platform
    Upgrade {
        /// Release channel to install (default: stable)
        #[arg(long, value_enum)]
        channel: Option<ReleaseChannel>,
    },
}