Sha256: 0852ea72a45a4de8acabb2fad2e17e552b852276c4d07a70830d89ced832c48c

Contents?: true

Size: 1.03 KB

Versions: 73

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 apps."
        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

73 entries across 73 versions & 1 rubygems

Version Path
neetob-0.5.35 lib/neetob/cli/users/commands.rb
neetob-0.5.34 lib/neetob/cli/users/commands.rb
neetob-0.5.33 lib/neetob/cli/users/commands.rb
neetob-0.5.32 lib/neetob/cli/users/commands.rb
neetob-0.5.31 lib/neetob/cli/users/commands.rb
neetob-0.5.30 lib/neetob/cli/users/commands.rb
neetob-0.5.29 lib/neetob/cli/users/commands.rb
neetob-0.5.28 lib/neetob/cli/users/commands.rb
neetob-0.5.27 lib/neetob/cli/users/commands.rb
neetob-0.5.26 lib/neetob/cli/users/commands.rb
neetob-0.5.25 lib/neetob/cli/users/commands.rb
neetob-0.5.24 lib/neetob/cli/users/commands.rb
neetob-0.5.23 lib/neetob/cli/users/commands.rb
neetob-0.5.22 lib/neetob/cli/users/commands.rb
neetob-0.5.21 lib/neetob/cli/users/commands.rb
neetob-0.5.20 lib/neetob/cli/users/commands.rb
neetob-0.5.19 lib/neetob/cli/users/commands.rb
neetob-0.5.18 lib/neetob/cli/users/commands.rb
neetob-0.5.17 lib/neetob/cli/users/commands.rb
neetob-0.5.16 lib/neetob/cli/users/commands.rb