struct Build::Flags
- Build::Flags
- Struct
- Value
- Object
Overview
Extend the flags struct to include the flag
Defined in:
build.cr:9build.cr:29
build.cr:37
build.cr:45
build.cr:54
build.cr:62
Constant Summary
-
DESCRIPTIONS =
{} of String => String
-
SPECS =
{"__help__" => {kind: "bool", type: "Bool", default: "false", description: {"--help", "Displays help for the current command."}, short: "nil", long: "help", is_required: true}, "user_data" => {kind: "nil", type: "String", default: "nil", description: {"--user-data, -u", "The yaml file defining user data for cloud-init"}, short: "u", long: "user-data", is_required: false}, "meta_data" => {kind: "nil", type: "String", default: "nil", description: {"--meta-data, -m", "The yaml file defining meta data for cloud-init"}, short: "m", long: "meta-data", is_required: false}, "all_in_one" => {kind: "bool", type: "Bool", default: "false", description: {"--all-in-one, -a", "Whether to combine everything into a single iso or not"}, short: "a", long: "all-in-one", is_required: true}, "source" => {kind: "nil", type: "String", default: "nil", description: {"--source, -s", "Source iso, if not defined will use latest ubuntu 20.04 build"}, short: "s", long: "source", is_required: false}, "destination" => {kind: "nil", type: "String", default: "\"output.iso\"", description: {"--destination, -d (default: \"output.iso\")", "Where to write the resulting iso file"}, short: "d", long: "destination", is_required: true}} of String => NamedTuple(kind: String, type: String, default: String, description: Tuple(String, String | ::Nil), short: String | ::Nil, long: String, is_required: Bool)
Constructors
Instance Method Summary
- #__help__
- #all_in_one
- #destination
- #inspect(io)
- #meta_data : String?
- #source : String?
- #user_data : String?
- #validate!(command)