class Amber::CLI::Api
Defined in:
amber/cli/generators/api.cr
Constructors
Instance Method Summary
add_timestamp_fields
add_timestamp_fields,
config : Amber::CLI::Config
config,
config=(config : Amber::CLI::Config)
config=,
fields : Array(Field)
fields,
fields=(fields : Array(Field))
fields=,
fields_hash : Hash(String, String)
fields_hash,
fields_hash=(fields_hash : Hash(String, String))
fields_hash=,
filter(entries)
filter,
name : String
name,
name=(name : String)
name=,
post_render(directory, **args)
post_render,
pre_render(directory, **args)
pre_render,
render(directory, **args)
render,
table_name : String | Nil
table_name,
table_name=(table_name : String | Nil)
table_name=,
timestamp : String
timestamp,
timestamp=(timestamp : String)
timestamp=
new(name : String, params)
new
registered_commands
registered_commands
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
run(command, wait = true, shell = true)
run
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, fields)
#
Instance Method Detail
def
render(directory, **args)
#