/rx

rx is the core package for building up cargo runner on different IDE

Primary LanguageRust

Cargo Runner

Changelog

April 08, 2024

  • Commands Have Ability to Add Zero or More CommandConfig
  • Commands can get_configs(CommandContext)
  • ConfigBuilder on new must require command and command_type
  • ConfigBuilder can chain different builder methods
    • command
    • env
    • pre_command
    • params
    • working_directory
    • allow_multiple_instances
    • command_type
  • ConfigBuilder can add_validator using Validator() closure
  • ConfigBuilder uses build to turn it into CommandDetails
  • ConfigBuilder can use get_or_default_config(CommandContext)
  • ConfigBuilder instance can update_config(config_key, run_command_details)
  • Commands can set_default_config(CommandContext, config_key)
  • Ensure Config Deserialization for empty field and file by setting defaults with serde macro
  • Config instance can save after modifying Config
  • Config can load config file on init of the app
  • ConfigError is used when Error on Config happends
  • Create Default Config file on $HOME/.config/cargo_runner/config.toml