class
AzuCLI::Commands::Config::Env
- AzuCLI::Commands::Config::Env
- AzuCLI::Commands::Base
- Reference
- Object
Overview
Env command for environment variable management
Defined in:
azu_cli/commands/config/env.crConstant Summary
-
AZU_ENV_VARS =
[{"AZU_ENV", "Environment name (development, test, production)"}, {"AZU_DEBUG", "Enable debug mode"}, {"AZU_VERBOSE", "Enable verbose output"}, {"AZU_QUIET", "Suppress non-error output"}, {"AZU_HOST", "Development server host"}, {"AZU_PORT", "Development server port"}, {"AZU_DB_HOST", "Database host"}, {"AZU_DB_PORT", "Database port"}, {"AZU_DB_USER", "Database user"}, {"AZU_DB_PASSWORD", "Database password"}, {"AZU_DB_NAME", "Database name"}, {"DATABASE_URL", "Full database connection URL"}, {"AZU_TEMPLATES_PATH", "Path to template files"}, {"AZU_OUTPUT_PATH", "Default output directory"}] -
Known Azu environment variables
Constructors
Instance Method Summary
-
#execute : Result
Abstract method that all commands must implement
- #list : Bool
- #list=(list : Bool)
- #set_var : String | Nil
- #set_var=(set_var : String | Nil)
-
#show_help
Show help for this command
- #show_values : Bool
- #show_values=(show_values : Bool)
- #unset_var : String | Nil
- #unset_var=(unset_var : String | Nil)
Instance methods inherited from class AzuCLI::Commands::Base
all_args : Array(String)
all_args,
all_args=(all_args : Array(String))
all_args=,
args : Array(String)
args,
args=(args : Array(String))
args=,
description : String
description,
description=(description : String)
description=,
error(message : String, category : String) : Resulterror(message : String) : Result error, execute : Result execute, fatal_error(message : String, category : String = Config::ErrorCategory::UNKNOWN) : NoReturn fatal_error, filesystem_error(message : String, category : String = Config::ErrorCategory::IO_ERROR) : Result filesystem_error, get_arg(index : Int32) : String | Nil get_arg, get_args : Array(String) get_args, get_option(key : String, default : String = "") : String get_option, handle_error(message : String, category : String = Config::ErrorCategory::UNKNOWN, severity : Int32 = Config::ErrorSeverity::ERROR, exit_code : Int32 = Config::EXIT_FAILURE, should_exit : Bool = false) : Result handle_error, has_option?(key : String) : Bool has_option?, name : String name, name=(name : String) name=, options : Hash(String, String) options, options=(options : Hash(String, String)) options=, parse_args(args : Array(String)) parse_args, show_examples show_examples, show_help show_help, success(message : String = "") : Result success, validate_required_args(required_count : Int32) : Bool validate_required_args, validate_required_options(required_options : Array(String)) : Bool validate_required_options, validation_error(message : String) : Result validation_error, warning(message : String, category : String = Config::ErrorCategory::UNKNOWN) warning, with_error_handling(category : String = Config::ErrorCategory::RUNTIME_ERROR, &) with_error_handling
Constructor methods inherited from class AzuCLI::Commands::Base
new(name : String, description : String = "")
new
Constructor Detail
Instance Method Detail
Description copied from class AzuCLI::Commands::Base
Abstract method that all commands must implement