class AzuCLI::Tasks
- AzuCLI::Tasks
- Reference
- Object
Included Modules
Defined in:
azu_cli/tasks.crConstant Summary
-
DESCRIPTION =
"#{bold("Azu - Topia Taskfile")} - Generates a Taskfile\n\n Creates a tasks taskfile is placed in ./tasks/taskfile.cr\n \n Leverage tasks to automate mundane, repetitive tasks and compose them into \n efficient automated pipelines and workflows using `pipes`.\n\n Docs: https://github.com/azutoolkit/topia\n\n #{underline(:Example)}\n \n Topia.task(\"customtask\")\n .command(\"mkdir -p ./hello_world\")\n .pipe(ExampePipe.new) \n\n class ExampePipe\n include AzuCLI::Base\n \n def run\n announce \"Building...\"\n # ... do somethong ...\n announce \"Build complete!\"\n true\n rescue\n error(\"Build failed!\")\n end\n end"
-
PATH =
"./tasks/taskfile.cr"
Instance Method Summary
- #help : Bool
- #help=(v : Bool) : Bool
-
#help=(v : Nil)
nil
assignments are always ignored - #help?
- #not_exists?(path, &)
- #on(event : String)
- #register_option_help(parser)
- #register_option_task(parser)
- #register_option_version(parser)
- #run(input, args)
-
#run
[app flow] step3 : main routine
- #shard(path = "./shard.yml")
- #show_usage
- #task : String
- #task=(v : String) : String
-
#task=(v : Nil)
nil
assignments are always ignored - #task? : String | Nil
- #version : Bool
- #version=(v : Bool) : Bool
-
#version=(v : Nil)
nil
assignments are always ignored - #version?