Sha256: 32fd768ce4467bd5ecd76c85f1f2cef535e3f3028bfa566b0b214a76850b6cc0

Contents?: true

Size: 344 Bytes

Versions: 5

Compression:

Stored size: 344 Bytes

Contents

#!/usr/bin/env ruby
$:.push File.expand_path("../../lib", __FILE__)
require 'nexus_cli'

begin
  NexusCli::Cli.start
rescue NexusCli::NexusCliError => e
  NexusCli.ui.say e.message, :red
  exit e.status_code
rescue RestClient::Unauthorized => e
  e = NexusCli::PermissionsException.new
  NexusCli.ui.say e.message, :red
  exit e.status_code
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nexus_cli-0.7.3 bin/nexus-cli
nexus_cli-0.7.2 bin/nexus-cli
nexus_cli-0.7.1 bin/nexus-cli
nexus_cli-0.7.0 bin/nexus-cli
nexus_cli-0.6.0 bin/nexus-cli