Sha256: 375f461772cb75296d4e9e1f3a8a1ad99ef3e13dfcb17e8de7df7b729a9553ca
Contents?: true
Size: 1.15 KB
Versions: 23
Compression:
Stored size: 1.15 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\"" 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\"" option :all_neeto_repos, type: :boolean, aliases: "--all", desc: "Use this flag for working with all neeto repos", default: false def commits Commits.new( options[:author], options[:duration], options[:apps], options[:sandbox], options[:all_neeto_repos]).run end end end end end
Version data entries
23 entries across 23 versions & 2 rubygems