Compare commits

..

14 Commits

  1. 2
      .devcontainer/Dockerfile
  2. 16
      apps/app_cli/src/commands.rs
  3. 2
      apps/app_cli/src/config.rs

2
.devcontainer/Dockerfile

@ -1,4 +1,4 @@
FROM rust:1.94.1-trixie FROM rust:1.90.0
# Install basic development tools # Install basic development tools
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \

16
apps/app_cli/src/commands.rs

@ -39,22 +39,6 @@ impl Command {
} }
} }
// pub fn resolve_command(command: &Command) -> &dyn AppCommand {
// match command {
// Command::Decode(app_cmd) => app_cmd,
// Command::Encode(app_cmd) => app_cmd,
// Command::ImportDict(app_cmd) => app_cmd,
// }
// }
// pub fn resolve_command_box(command: Command) -> Box<dyn AppCommand> {
// match command {
// Command::Decode(cmd) => Box::new(cmd),
// Command::Encode(cmd) => Box::new(cmd),
// Command::ImportDict(cmd) => Box::new(cmd),
// }
// }
#[derive(Parser, Debug)] #[derive(Parser, Debug)]
#[command(author, version, about)] #[command(author, version, about)]
pub struct CliArgs { pub struct CliArgs {

2
apps/app_cli/src/config.rs

@ -29,7 +29,7 @@ impl AppConfig {
builder = builder.add_source(File::from(config_path.as_path()).required(!is_default_path)); builder = builder.add_source(File::from(config_path.as_path()).required(!is_default_path));
// Environment Layer (APP_SERVER_PORT) // Environment Layer (e.g. APP_LISTEN_PORT)
builder = builder.add_source(Environment::with_prefix("APP").separator("_")); builder = builder.add_source(Environment::with_prefix("APP").separator("_"));
// Global log level override // Global log level override

Loading…
Cancel
Save