diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-07 12:17:54 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-07 16:57:24 +0800 |
| commit | de63da1d103defa0dad800346dce72db8633cd77 (patch) | |
| tree | 7df3b8cf4e3445f2cc2e8198971c36b3b3df994a /mingling_cli/src/main.rs | |
| parent | 4b717065177bc34b73b2d8412b412685d65f3138 (diff) | |
revert: Remove serde and structural renderer support
Diffstat (limited to 'mingling_cli/src/main.rs')
| -rw-r--r-- | mingling_cli/src/main.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/mingling_cli/src/main.rs b/mingling_cli/src/main.rs index 7c71bcd..ea11b15 100644 --- a/mingling_cli/src/main.rs +++ b/mingling_cli/src/main.rs @@ -10,12 +10,9 @@ use crate::{ }; use mingling::{ ShellContext, Suggest, - consts::{HELP_FLAG, JSON_FLAG, JSON_PRETTY_FLAG}, + consts::HELP_FLAG, macros::{completion, gen_program, help, suggest}, - setup::{ - ExitCodeSetup, - picker::{HelpFlagSetup, StructuralRendererSetup}, - }, + setup::{ExitCodeSetup, picker::HelpFlagSetup}, }; pub mod diagnostic; @@ -32,7 +29,6 @@ async fn main() { let mut program = ThisProgram::new(); // Setups - program.with_setup(StructuralRendererSetup); program.with_setup(HelpFlagSetup::default()); program.with_setup(ExitCodeSetup::default()); @@ -58,8 +54,6 @@ pub fn complete_global(_ctx: &ShellContext) -> Suggest { ARG_ALL_FEATURES: "Enable all features", ARG_NO_DEFAULT_FEATURES: "Disable default features", ARG_NO_DEPS: "Do not include dependencies in metadata", - JSON_FLAG: "Render results in JSON format", - JSON_PRETTY_FLAG: "Render results in pretty JSON format" } } |
