abstract class Launch::CLI::Generator

Included Modules

Direct Known Subclasses

Defined in:

launch/cli/generators/generator.cr

Constructors

Class Method Summary

Instance Method Summary

Macro Summary

Instance methods inherited from module Launch::CLI::Helpers

add_dependencies(dependencies) add_dependencies, add_plugs(pipeline, plug) add_plugs, add_routes(pipeline, route) add_routes, add_static_routes add_static_routes

Class methods inherited from module Launch::CLI::Helpers

run(command, wait = true, shell = true) run

Instance methods inherited from class Teeplate::FileTree

class_name class_name, display_name display_name, display_name_plural display_name_plural, filter(entries) filter, name_plural name_plural, render(out_dir, force : Bool = false, interactive : Bool = false, interact : Bool = false, list : Bool = false, color : Bool = false, per_entry : Bool = false, quit : Bool = true) render

Instance methods inherited from class Object

blank? blank?, present? present?

Constructor Detail

def self.new(name : String, params) #

[View source]

Class Method Detail

def self.registered_commands #

[View source]

Instance Method Detail

def add_timestamp_fields #

[View source]
def config : Launch::CLI::Config #

[View source]
def config=(config : Launch::CLI::Config) #

[View source]
def fields : Array(Field) #

[View source]
def fields=(fields : Array(Field)) #

[View source]
def fields_hash : Hash(String, String) #

[View source]
def fields_hash=(fields_hash : Hash(String, String)) #

[View source]
def filter(entries) #
Description copied from class Teeplate::FileTree

Override to filter files rendered


[View source]
def name : String #

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

[View source]
def post_render(directory, **args) #

[View source]
def pre_render(directory, **args) #

[View source]
def render(directory, **args) #

[View source]
def table_name : String | Nil #

[View source]
def table_name=(table_name : String | Nil) #

[View source]
def timestamp : String #

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

[View source]

Macro Detail

macro command(name) #

[View source]