Sha256: 3c4d42ce61d9ce98fcbd445af232e770416c0a9c257ff231735fd0712a1f1e51
Contents?: true
Size: 469 Bytes
Versions: 16
Compression:
Stored size: 469 Bytes
Contents
command 'schema' do |c| c.syntax = "brief schema" c.description = "view information about the schema" c.option '--all-models', 'Include all models, not just those that have documents' c.action do |args, options| schema_map = Brief.case(true).schema_map(options.all_models) output = if args.empty? schema_map.to_json else detail = schema_map.fetch(args.first.downcase, nil) detail.to_json if detail end output end end
Version data entries
16 entries across 16 versions & 1 rubygems