Sha256: cd6c4f79b05f0f650862fe4bd9e1d7ccd41aa846937db74e2559d3d537144c66
Contents?: true
Size: 664 Bytes
Versions: 3
Compression:
Stored size: 664 Bytes
Contents
#!/usr/bin/env ruby require 'sord' require 'commander/import' program :name, 'sord' program :version, Sord::VERSION program :description, 'Generate Sorbet RBIs from YARD documentation' default_command :gen command :gen do |c| c.syntax = 'sord gen <output-file> [options]' c.description = 'Generates an RBI file from this directory\'s YARD docs' c.option '--[no-]comments', 'Disables informational/warning comments in the RBI file' c.action do |args, options| options.default comments: true if args.length != 1 Sord::Logging.error('Must specify filename') exit 1 end Sord::RbiGenerator.new(options).run(args.first) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sord-0.6.0 | exe/sord |
sord-0.5.0 | exe/sord |
sord-0.4.1 | exe/sord |