You've already forked KernelSU-Next
mirror of
https://github.com/KernelSU-Next/KernelSU-Next.git
synced 2025-08-27 23:46:34 +00:00
ksud: fix rustfmt errors
This commit is contained in:
@@ -62,41 +62,41 @@ enum Commands {
|
|||||||
#[command(subcommand)]
|
#[command(subcommand)]
|
||||||
command: Profile,
|
command: Profile,
|
||||||
},
|
},
|
||||||
|
//
|
||||||
// /// Patch boot or init_boot images to apply KernelSU Next
|
// /// Patch boot or init_boot images to apply KernelSU Next
|
||||||
// BootPatch {
|
// BootPatch {
|
||||||
// /// boot image path, if not specified, will try to find the boot image automatically
|
// /// boot image path, if not specified, will try to find the boot image automatically
|
||||||
// #[arg(short, long)]
|
// #[arg(short, long)]
|
||||||
// boot: Option<PathBuf>,
|
// boot: Option<PathBuf>,
|
||||||
|
//
|
||||||
// /// kernel image path to replace
|
// /// kernel image path to replace
|
||||||
// #[arg(short, long)]
|
// #[arg(short, long)]
|
||||||
// kernel: Option<PathBuf>,
|
// kernel: Option<PathBuf>,
|
||||||
|
//
|
||||||
// /// LKM module path to replace, if not specified, will use the builtin one
|
// /// LKM module path to replace, if not specified, will use the builtin one
|
||||||
// #[arg(short, long)]
|
// #[arg(short, long)]
|
||||||
// module: Option<PathBuf>,
|
// module: Option<PathBuf>,
|
||||||
|
//
|
||||||
// /// init to be replaced
|
// /// init to be replaced
|
||||||
// #[arg(short, long, requires("module"))]
|
// #[arg(short, long, requires("module"))]
|
||||||
// init: Option<PathBuf>,
|
// init: Option<PathBuf>,
|
||||||
|
//
|
||||||
// /// will use another slot when boot image is not specified
|
// /// will use another slot when boot image is not specified
|
||||||
// #[arg(short = 'u', long, default_value = "false")]
|
// #[arg(short = 'u', long, default_value = "false")]
|
||||||
// ota: bool,
|
// ota: bool,
|
||||||
|
//
|
||||||
// /// Flash it to boot partition after patch
|
// /// Flash it to boot partition after patch
|
||||||
// #[arg(short, long, default_value = "false")]
|
// #[arg(short, long, default_value = "false")]
|
||||||
// flash: bool,
|
// flash: bool,
|
||||||
|
//
|
||||||
// /// output path, if not specified, will use current directory
|
// /// output path, if not specified, will use current directory
|
||||||
// #[arg(short, long, default_value = None)]
|
// #[arg(short, long, default_value = None)]
|
||||||
// out: Option<PathBuf>,
|
// out: Option<PathBuf>,
|
||||||
|
//
|
||||||
// /// magiskboot path, if not specified, will search from $PATH
|
// /// magiskboot path, if not specified, will search from $PATH
|
||||||
// #[arg(long, default_value = None)]
|
// #[arg(long, default_value = None)]
|
||||||
// magiskboot: Option<PathBuf>,
|
// magiskboot: Option<PathBuf>,
|
||||||
|
//
|
||||||
// /// KMI version, if specified, will use the specified KMI
|
// /// KMI version, if specified, will use the specified KMI
|
||||||
// #[arg(long, default_value = None)]
|
// #[arg(long, default_value = None)]
|
||||||
// kmi: Option<String>,
|
// kmi: Option<String>,
|
||||||
|
|||||||
@@ -58,41 +58,41 @@ enum Commands {
|
|||||||
#[command(subcommand)]
|
#[command(subcommand)]
|
||||||
command: Profile,
|
command: Profile,
|
||||||
},
|
},
|
||||||
|
//
|
||||||
// /// Patch boot or init_boot images to apply KernelSU Next
|
// /// Patch boot or init_boot images to apply KernelSU Next
|
||||||
// BootPatch {
|
// BootPatch {
|
||||||
// /// boot image path, if not specified, will try to find the boot image automatically
|
// /// boot image path, if not specified, will try to find the boot image automatically
|
||||||
// #[arg(short, long)]
|
// #[arg(short, long)]
|
||||||
// boot: Option<PathBuf>,
|
// boot: Option<PathBuf>,
|
||||||
|
//
|
||||||
// /// kernel image path to replace
|
// /// kernel image path to replace
|
||||||
// #[arg(short, long)]
|
// #[arg(short, long)]
|
||||||
// kernel: Option<PathBuf>,
|
// kernel: Option<PathBuf>,
|
||||||
|
//
|
||||||
// /// LKM module path to replace, if not specified, will use the builtin one
|
// /// LKM module path to replace, if not specified, will use the builtin one
|
||||||
// #[arg(short, long)]
|
// #[arg(short, long)]
|
||||||
// module: Option<PathBuf>,
|
// module: Option<PathBuf>,
|
||||||
|
//
|
||||||
// /// init to be replaced
|
// /// init to be replaced
|
||||||
// #[arg(short, long, requires("module"))]
|
// #[arg(short, long, requires("module"))]
|
||||||
// init: Option<PathBuf>,
|
// init: Option<PathBuf>,
|
||||||
|
//
|
||||||
// /// will use another slot when boot image is not specified
|
// /// will use another slot when boot image is not specified
|
||||||
// #[arg(short = 'u', long, default_value = "false")]
|
// #[arg(short = 'u', long, default_value = "false")]
|
||||||
// ota: bool,
|
// ota: bool,
|
||||||
|
//
|
||||||
// /// Flash it to boot partition after patch
|
// /// Flash it to boot partition after patch
|
||||||
// #[arg(short, long, default_value = "false")]
|
// #[arg(short, long, default_value = "false")]
|
||||||
// flash: bool,
|
// flash: bool,
|
||||||
|
//
|
||||||
// /// output path, if not specified, will use current directory
|
// /// output path, if not specified, will use current directory
|
||||||
// #[arg(short, long, default_value = None)]
|
// #[arg(short, long, default_value = None)]
|
||||||
// out: Option<PathBuf>,
|
// out: Option<PathBuf>,
|
||||||
|
//
|
||||||
// /// magiskboot path, if not specified, will search from $PATH
|
// /// magiskboot path, if not specified, will search from $PATH
|
||||||
// #[arg(long, default_value = None)]
|
// #[arg(long, default_value = None)]
|
||||||
// magiskboot: Option<PathBuf>,
|
// magiskboot: Option<PathBuf>,
|
||||||
|
//
|
||||||
// /// KMI version, if specified, will use the specified KMI
|
// /// KMI version, if specified, will use the specified KMI
|
||||||
// #[arg(long, default_value = None)]
|
// #[arg(long, default_value = None)]
|
||||||
// kmi: Option<String>,
|
// kmi: Option<String>,
|
||||||
|
|||||||
Reference in New Issue
Block a user