lib/neetob/cli/github/commands.rb in neetob-0.2.3 vs lib/neetob/cli/github/commands.rb in neetob-0.2.4
- old
+ new
@@ -42,16 +42,16 @@
desc "protect_branch", "Protect the specified branch with the given rules"
option :branch, type: :string, aliases: "-b",
desc: "Name of the branch whose protections rules needs to be updated", required: true
option :path, type: :string, aliases: "-p",
desc: "The JSON file path which specify all the required rules for branch protection"
- option :repos, type: :array, aliases: "-r", desc: "Github repo names. Can be matched using the '*' wildcard. Example: \"neeto*\" \"neeto-cal-web\""
- option :all_neeto_repos, type: :boolean, aliases: "--all",
- desc: "Use this flag for working with all neeto repos", default: false
+ option :repos, type: :array, aliases: "-r",
+ desc:
+ "Github repo names. Can be matched using the '*' wildcard. Example: \"neeto*\" \"neeto-cal-web\", also providing \"all\" as value matches all neeto repos.",
+ required: true
def protect_branch
ProtectBranch.new(
- options[:branch], options[:repos], options[:path], options[:sandbox],
- options[:all_neeto_repos]).run
+ options[:branch], options[:repos], options[:path], options[:sandbox]).run
end
end
end
end
end