Module: Docscribe::CLI::RbsGen

Defined in:
lib/docscribe/cli/rbs_gen.rb

Overview

CLI subcommand to generate RBS files from YARD documentation

Defined Under Namespace

Classes: MethodDef, ParamTag, WalkContext, YardTags

Constant Summary collapse

<<~TEXT
  Usage: docscribe rbs [options] [files...]

  Generate RBS signature files from YARD documentation.

TEXT

Class Method Summary collapse

Class Method Details

.run(argv) ⇒ Integer

Parameters:

  • argv (Array<String>)

Returns:

  • (Integer)


93
94
95
96
97
98
99
# File 'lib/docscribe/cli/rbs_gen.rb', line 93

def run(argv)
  options = parse_options(argv)
  paths = expand_paths(argv)
  return no_files_found if paths.empty?

  run_with(options, paths)
end