abstract class Amber::CLI::Generator

Included Modules

Direct Known Subclasses

Defined in:

amber/cli/generators/generator.cr

Constructors

Class Method Summary

Instance Method Summary

Macro Summary

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

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

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

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

Instance methods inherited from module Amber::CLI::Helpers::Migration

create_index_for_reference_fields_sql create_index_for_reference_fields_sql, create_table_sql create_table_sql, drop_table_sql drop_table_sql, primary_key primary_key

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

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 : Amber::CLI::Config #

[View source]
def config=(config : Amber::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]