Sha256: 27687982d0a9792aeba64a0f32e9425d0fe4a8d6a4b885467f408b16fa52b8e9
Contents?: true
Size: 1007 Bytes
Versions: 3
Compression:
Stored size: 1007 Bytes
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\"" 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
neetob-0.1.2 | lib/neetob/cli/users/commands.rb |
neetob-0.1.1 | lib/neetob/cli/users/commands.rb |
neetob-0.1.0 | lib/neetob/cli/users/commands.rb |