lib/tapioca/cli.rb in tapioca-0.13.3 vs lib/tapioca/cli.rb in tapioca-0.14.3

- old
+ new

@@ -133,10 +133,15 @@ default: "." option :halt_upon_load_error, type: :boolean, desc: "Halt upon a load error while loading the Rails application", default: true + option :skip_constant, + type: :array, + banner: "constant [constant ...]", + desc: "Do not generate RBI definitions for the given application constant(s)", + default: [] def dsl(*constant_or_paths) set_environment(options) # Assume anything starting with a capital letter or colon is a class, otherwise a path constants, paths = constant_or_paths.partition { |c| c =~ /\A[A-Z:]/ } @@ -147,9 +152,10 @@ outpath: Pathname.new(options[:outdir]), only: options[:only], exclude: options[:exclude], file_header: options[:file_header], tapioca_path: TAPIOCA_DIR, + skip_constant: options[:skip_constant], quiet: options[:quiet], verbose: options[:verbose], number_of_workers: options[:workers], rbi_formatter: rbi_formatter(options), app_root: options[:app_root],