class Amber::CLI::Generators

Defined in:

amber/cli/generators.cr

Constant Summary

KEYWORDS = {"abstract", "do", "if", "nil?", "select", "union", "alias", "else", "in", "of", "self", "unless", "as", "elsif", "include", "out", "sizeof", "until", "instance_sizeof", "as?", "pointerof", "struct", "end", "verbatim", "asm", "ensure", "is_a?", "private", "super", "begin", "enum", "when", "lib", "protected", "then", "while", "break", "extend", "macro", "require", "true", "with", "case", "false", "module", "rescue", "type", "yield", "class", "for", "next", "responds_to?", "typeof", "def", "fun", "nil", "return", "uninitialized", "adler32", "argumenterror", "array", "atomic", "base64", "benchmark", "bigdecimal", "bigfloat", "bigint", "bigrational", "bitarray", "bool", "box", "bytes", "channel", "char", "class", "colorize", "comparable", "complex", "concurrent", "concurrentexecutionexception", "crc32", "crypto", "crystal", "csv", "debug", "deprecated", "deque", "digest", "dir", "divisionbyzeroerror", "dl", "ecr", "enum", "enumerable", "env", "errno", "exception", "fiber", "file", "fileutils", "flags", "flate", "float", "float32", "float64", "gc", "gzip", "hash", "html", "http", "indexable", "indexerror", "ini", "int", "int128", "int16", "int32", "int64", "int8", "invalidbigdecimalexception", "invalidbytesequenceerror", "io", "ipsocket", "iterable", "iterator", "json", "keyerror", "levenshtein", "link", "llvm", "logger", "markdown", "math", "mime", "mutex", "namedtuple", "nil", "nilassertionerror", "notimplementederror", "number", "oauth", "oauth2", "object", "openssl", "optionparser", "overflowerror", "partialcomparable", "path", "pointer", "prettyprint", "proc", "process", "random", "range", "readline", "reference", "reflect", "regex", "semanticversion", "set", "signal", "slice", "socket", "spec", "staticarray", "string", "stringpool", "stringscanner", "struct", "symbol", "system", "tcpserver", "tcpsocket", "termios", "time", "tuple", "typecasterror", "udpsocket", "uint128", "uint16", "uint32", "uint64", "uint8", "union", "unixserver", "unixsocket", "uri", "uuid", "valist", "value", "weakref", "xml", "yaml", "zip", "zlib"}

Keywords from https://github.com/crystal-lang/crystal/wiki/Crystal-for-Rubyists#available-keywords as of May 6th, 2019

Log = ::Log.for("generate")

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, directory : String, fields : Array(String) = [] of String) #

[View source]

Instance Method Detail

def directory : String #

[View source]
def error(msg) #

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

[View source]
def generate(command : String, options) #

[View source]
def generate_app(options) #

[View source]
def info(msg) #

[View source]
def model #

[View source]
def name : String #

[View source]