lib/tapioca/cli.rb in tapioca-0.10.4 vs lib/tapioca/cli.rb in tapioca-0.10.5
- old
+ new
@@ -23,13 +23,16 @@
desc: "Verbose output for debugging purposes",
default: false
desc "init", "get project ready for type checking"
def init
- invoke(:configure)
- invoke(:annotations)
- invoke(:gem)
+ # We need to make sure that trackers stay enabled until the `gem` command is invoked
+ Runtime::Trackers.with_trackers_enabled do
+ invoke(:configure)
+ invoke(:annotations)
+ invoke(:gem)
+ end
invoke(:todo)
print_init_next_steps
end
@@ -291,10 +294,12 @@
command.execute
end
end
desc "annotations", "Pull gem RBI annotations from remote sources"
- option :sources, type: :array, default: [CENTRAL_REPO_ROOT_URI],
+ option :sources,
+ type: :array,
+ default: [CENTRAL_REPO_ROOT_URI],
desc: "URIs of the sources to pull gem RBI annotations from"
option :netrc, type: :boolean, default: true, desc: "Use .netrc to authenticate to private sources"
option :netrc_file, type: :string, desc: "Path to .netrc file"
option :auth, type: :string, default: nil, desc: "HTTP authorization header for private sources"
option :typed_overrides,