class AzuCLI::Tasks

Included Modules

Defined in:

azu_cli/tasks.cr

Constant 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

Instance methods inherited from module AzuCLI::Command

project_name : String project_name, run run, show_usage show_usage, show_version show_version

Class methods inherited from module AzuCLI::Command

run(argv = ARGV) run

Instance Method Detail

def help : Bool #

def help=(v : Bool) : Bool #

def help=(v : Nil) #

nil assignments are always ignored


def help? #

def not_exists?(path, &) #

[View source]
def on(event : String) #

[View source]
def register_option_help(parser) #

def register_option_task(parser) #

[View source]
def register_option_version(parser) #

def run(input, args) #

[View source]
def run #
Description copied from module Opts

[app flow] step3 : main routine


[View source]
def shard(path = "./shard.yml") #

[View source]
def show_usage #

[View source]
def task : String #

def task=(v : String) : String #

def task=(v : Nil) #

nil assignments are always ignored


def task? : String | Nil #

def version : Bool #

def version=(v : Bool) : Bool #

def version=(v : Nil) #

nil assignments are always ignored


def version? #