class

Hwaro::CLI::Commands::Tool::ConvertCommand

Inherits Reference / Object

Constants

DESCRIPTION = "Convert frontmatter format (TOML / YAML / JSON)"
FLAGS = [CONTENT_DIR_FLAG, JSON_FLAG, HELP_FLAG]

Flags defined here are used both for OptionParser and completion generation

NAME = "convert"

Single source of truth for command metadata

POSITIONAL_ARGS = ["format"]
POSITIONAL_CHOICES = ["to-yaml", "to-toml", "to-json"]

Class methods

metadata
Source

Instance methods

run(args : Array(String))
Source