class AzuCLI::Commands::New

Overview

New command for creating new Azu projects

Defined in:

azu_cli/commands/new.cr

Constant Summary

CRYSTAL_RESERVED_WORDS = ["abstract", "alias", "annotation", "as", "asm", "begin", "break", "case", "class", "def", "do", "else", "elsif", "end", "ensure", "enum", "extend", "false", "for", "fun", "if", "include", "instance_sizeof", "is_a?", "lib", "macro", "module", "next", "nil", "of", "out", "pointerof", "private", "protected", "require", "rescue", "responds_to?", "return", "select", "self", "sizeof", "struct", "super", "then", "true", "type", "typeof", "union", "uninitialized", "unless", "until", "verbatim", "when", "while", "with", "yield"] of ::String

Crystal reserved words that cannot be used as project names

Constructors

Instance Method Summary

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) : Result
error(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

def self.new #

[View source]

Instance Method Detail

def author : String #

[View source]
def author=(author : String) #

[View source]
def ci_setup : String #

[View source]
def ci_setup=(ci_setup : String) #

[View source]
def database : String #

[View source]
def database=(database : String) #

[View source]
def docker_support : Bool #

[View source]
def docker_support=(docker_support : Bool) #

[View source]
def email : String #

[View source]
def email=(email : String) #

[View source]
def execute : Result #
Description copied from class AzuCLI::Commands::Base

Abstract method that all commands must implement


[View source]
def git_init : Bool #

[View source]
def git_init=(git_init : Bool) #

[View source]
def include_example : Bool #

[View source]
def include_example=(include_example : Bool) #

[View source]
def include_joobq : Bool #

[View source]
def include_joobq=(include_joobq : Bool) #

[View source]
def license : String #

[View source]
def license=(license : String) #

[View source]
def module_name : String #

[View source]
def module_name=(module_name : String) #

[View source]
def non_interactive : Bool #

[View source]
def non_interactive=(non_interactive : Bool) #

[View source]
def parse_args(args : Array(String)) #

Override parse_args to also trigger custom parsing


[View source]
def project_name : String #

Configuration properties


[View source]
def project_name=(project_name : String) #

Configuration properties


[View source]
def project_type : String #

[View source]
def project_type=(project_type : String) #

[View source]
def show_help #
Description copied from class AzuCLI::Commands::Base

Show help for this command


[View source]
def test_framework : String #

[View source]
def test_framework=(test_framework : String) #

[View source]