Compare commits

..

2 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.90.0
FROM rust:1.94.1-trixie
# Install basic development tools
RUN apt-get update && apt-get install -y \

16
apps/app_cli/src/commands.rs

@ -39,6 +39,22 @@ 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)]
#[command(author, version, about)]
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));
// Environment Layer (e.g. APP_LISTEN_PORT)
// Environment Layer (APP_SERVER_PORT)
builder = builder.add_source(Environment::with_prefix("APP").separator("_"));
// Global log level override

Loading…
Cancel
Save