class Main

Included Modules

Defined in:

bin/main.cr

Constant Summary

USAGE = "{{version}}\n\nUsage: {{program}} <command> [options] [args]\n\nOptions:\n{{options}}\n\nCommand:\n #{Cmds.names}\n\nExamples:\n clickhouse-table config from default.logs\n clickhouse-table create merge\n clickhouse-table insert 20180924 diff.csv\n clickhouse-table replace 20180924 full.csv"

Class Method Summary

Instance Method Summary

Class Method Detail

def self.run(argv = ARGV) #
Description copied from module Opts

[app flow] step3 : main routine


[View source]

Instance Method Detail

def _db : String | Nil #

def _db=(v : String) : String #

def _db=(v : Nil) #

nil assignments are always ignored


def _db? : String | Nil #

def _host : String | Nil #

def _host=(v : String) : String #

def _host=(v : Nil) #

nil assignments are always ignored


def _host? : String | Nil #

def _path : String | Nil #

def _path=(v : String) : String #

def _path=(v : Nil) #

nil assignments are always ignored


def _path? : String | Nil #

def _table : String | Nil #

def _table=(v : String) : String #

def _table=(v : Nil) #

nil assignments are always ignored


def _table? : String | Nil #

def force : Bool #

def force=(v : Bool) : Bool #

def force=(v : Nil) #

nil assignments are always ignored


def force? #

[View source]
def help : Bool #

def help=(v : Bool) : Bool #

def help=(v : Nil) #

nil assignments are always ignored


def help? #

[View source]
def merge : Bool #

def merge=(v : Bool) : Bool #

def merge=(v : Nil) #

nil assignments are always ignored


def merge? #

[View source]
def nop : Bool #

def nop=(v : Bool) : Bool #

def nop=(v : Nil) #

nil assignments are always ignored


def nop? #

[View source]
def register_option__db(parser) #

[View source]
def register_option__host(parser) #

[View source]
def register_option__path(parser) #

[View source]
def register_option__table(parser) #

[View source]
def register_option_force(parser) #

[View source]
def register_option_help(parser) #

[View source]
def register_option_merge(parser) #

[View source]
def register_option_nop(parser) #

[View source]
def register_option_verbose(parser) #

[View source]
def register_option_version(parser) #

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

[app flow] step3 : main routine


[View source]
def show_usage #

[View source]
def show_version #

[View source]
def verbose : Bool #

def verbose=(v : Bool) : Bool #

def verbose=(v : Nil) #

nil assignments are always ignored


def verbose? #

[View source]
def version : Bool #

def version=(v : Bool) : Bool #

def version=(v : Nil) #

nil assignments are always ignored


def version? #

[View source]