lib/neetob/cli/github/base.rb in neetob-0.1.2 vs lib/neetob/cli/github/base.rb in neetob-0.1.4
- old
+ new
@@ -21,9 +21,16 @@
auth_client.start_oauth2_device_flow
end
@client = Octokit::Client.new(access_token: auth_client.access_token)
end
+ def check_for_apps_and_all_neeto_repos_option(apps, all_neeto_repos)
+ if (apps.nil? && !all_neeto_repos) || (!apps.nil? && all_neeto_repos)
+ ui.error("Please provide either \"apps\" or \"all-neeto-repos\" option.")
+ exit
+ end
+ end
+
private
def read_and_parse_auth_params_from_env
hash_with_keys_of_string_type = JSON.parse(ENV["AUTH_PARAMS"])
symbolize_keys(hash_with_keys_of_string_type)