Class: SplttyCLI::Commands::Install

Inherits:
Dry::CLI::Command
  • Object
show all
Defined in:
lib/spltty_cli/commands/install.rb

Overview

spltty install — scaffold a whole workspace in a folder: the CLI config, accounts/ with one entries + notes file per ledger, sources/INDEX.md, and a CLAUDE.md generated from the shipped template so an AI agent can drive the tracker from the first session.

Interactive by default; every step can be skipped except the participants (at least one) and the default ledger (pre-filled with "expenses").

Instance Method Summary collapse

Instance Method Details

#call(path: nil, **opts) ⇒ Object



41
42
43
44
45
46
# File 'lib/spltty_cli/commands/install.rb', line 41

def call(path: nil, **opts)
  InstallRunner.new(path, opts).run
rescue Prompt::Abort, Config::Error, ArgumentError => e
  warn "spltty install: #{e.message}"
  exit 1
end