Class: Ucode::Cli::Fetch
- Inherits:
-
Thor
- Object
- Thor
- Ucode::Cli::Fetch
- Defined in:
- lib/ucode/cli.rb
Overview
─────────────── fetch ───────────────
Instance Method Summary collapse
Instance Method Details
#charts(version = nil) ⇒ Object
43 44 45 46 47 |
# File 'lib/ucode/cli.rb', line 43 def charts(version = nil) cps = [:block]&.map { |id| block_id_to_first_cp(id) }&.compact puts format_result Commands::FetchCommand.new .fetch_charts(version, block_first_cps: cps, force: [:force]) end |
#ucd(version = nil) ⇒ Object
30 31 32 |
# File 'lib/ucode/cli.rb', line 30 def ucd(version = nil) puts format_result Commands::FetchCommand.new.fetch_ucd(version, force: [:force]) end |
#unihan(version = nil) ⇒ Object
36 37 38 |
# File 'lib/ucode/cli.rb', line 36 def unihan(version = nil) puts format_result Commands::FetchCommand.new.fetch_unihan(version, force: [:force]) end |