Class: VivlioStarter::CLI::SamovarCommands::HelpCommand

Inherits:
VsCommand
  • Object
show all
Defined in:
lib/vivlio_starter/cli/samovar/help_command.rb

Overview

help コマンドの Samovar 実装

Constant Summary collapse

COMMAND_CATEGORIES =
{
  'プロジェクト管理' => %w[new upgrade import pdf:read doctor clean],
  '執筆・編集支援' => %w[create delete rename renumber],
  '文章校正・統計' => %w[lint metrics],
  '索引・用語集' => %w[index index:plan index:auto index:apply index:export index:import],
  '画像・カバー' => %w[cover resize],
  'ビルド・出力・プレビュー' => %w[preflight build open pdf:compress pdf:pages pdf:rasterize]
}.freeze
UNLISTED_COMMANDS =

一覧に載せない Public コマンド。 help はこの一覧そのものなので、自分を項目として並べても情報にならない (マニュアルでも vs --help の形で案内している。contract/docs_allowlist.yml 参照)。

%w[help].freeze

Constants included from OptionTokenNormalizer

OptionTokenNormalizer::BARE_VALUE_DEFAULTS

Instance Method Summary collapse

Methods included from OptionTokenNormalizer

#initialize, prepended

Instance Method Details

#callObject



45
46
47
48
# File 'lib/vivlio_starter/cli/samovar/help_command.rb', line 45

def call
  print_public_commands_help
  0
end