Sha256: 752cf775965076d94d4497b12bbe9b8e47115e47d28309dda5c07a0451ea2e2a
Contents?: true
Size: 1.03 KB
Versions: 4
Compression:
Stored size: 1.03 KB
Contents
# frozen_string_literal: true require "thor" require_relative "audit" require_relative "commits" module Neetob class CLI module Users class Commands < Thor desc "audit", "Audit the users of all the neeto apps" def audit Audit.new(options[:sandbox]).run end desc "commits", "List the commits of a user across the neeto apps" option :apps, type: :array, aliases: "-a", default: ["*"], desc: "Github app names. Can be matched using the '*' wildcard. Example: \"neeto*\" \"neeto-cal-web\", also providing \"all\" as value matches all neeto repos." option :author, type: :string, required: true, desc: "Github username of the person whose commits you want to list" option :duration, type: :string, required: true, desc: "Duration for which you want to list the commits. Example: \"6.months\" \"10.days\"" def commits Commits.new( options[:author], options[:duration], options[:apps], options[:sandbox]).run end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
neetob-0.2.7 | lib/neetob/cli/users/commands.rb |
neetob-0.2.6 | lib/neetob/cli/users/commands.rb |
neetob-0.2.5 | lib/neetob/cli/users/commands.rb |
neetob-0.2.4 | lib/neetob/cli/users/commands.rb |