andrcuns/allure-report-publisher

View on GitHub
lib/allure_report_publisher.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

require "require_all"
require "parallel"
require "dry/cli"

require_rel "allure_report_publisher/lib/helpers/*.rb"
require_rel "allure_report_publisher/**/*.rb"

module Publisher
  # CLI commands
  #
  module Commands
    extend Dry::CLI::Registry

    register "version", Version, aliases: ["-v", "--version"]
    register "upload", Upload, aliases: ["u"]
  end
end

Publisher::Commands.before("upload") { Publisher::Helpers.allure_cli? }