git-ahead-check/src/conf.cr

32 lines
540 B
Crystal

VERSION = {{ `shards version "#{__DIR__}"`.chomp.stringify }}
class CONFIG
property daemon : Bool
property short : Bool
def initialize(daemon : Bool, short : Bool)
@daemon = daemon
@short = short
end
def daemon=(daemon : Bool)
@daemon = daemon
end
def short=(short : Bool)
@short = short
end
def daemon(daemon : Bool)
return @daemon
end
def short(short : Bool)
return @short
end
end
ARGV_VARS = CONFIG.new(false, false)
CONFIG_PATH = "#{ENV["HOME"]}/.config/emilecok/git-ahead-check"