morpheus-cli 3.3.2 → 3.3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da10aefff03990b69fce2466166982e4018e2e8e
4
- data.tar.gz: 2777267312f2d3a994c3c1715fde9cd0b24d9efe
3
+ metadata.gz: 285ccc76f7accb168f7d4d141a0d22ef730d3583
4
+ data.tar.gz: cf48f1bb80eb08f0ec528258155da0579dcf13ff
5
5
  SHA512:
6
- metadata.gz: 3e3873db99a5e116b9420fde355e1f194a65abef24df3be5b9d4eb3efde4502217ea1bbeef54240a1bbd7d2523c3b4bb9418bae8ef1a78d1373ca5de4a3bf5b4
7
- data.tar.gz: 64e4fb938211bdf9c305e1f74dfc21669ea57b40d30dea8c4479efc1158cf0b170816f437458fddde7d1d2bd1355ccc8fafbb9020d0d9c87c9944b7d19060f04
6
+ metadata.gz: e23ba4299fc9168b661c9282f1ee0d454ceec9b7b235db42852651a24b14fa2737c13656b8d82a4e9fafaf469efcf526bf01182c634798d251aef30439200262
7
+ data.tar.gz: 1c2791b3c9ab502483f650af94182fb3ef5c61991b6d7502526e35db5986b11e4fceb99737b0e0595d0368c25915c83ead3e29882453be67dc01cf73e0693fc0
data/bin/morpheus CHANGED
@@ -1,7 +1,24 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'morpheus/terminal'
3
3
 
4
+ # arguments
5
+ args = ARGV
6
+
7
+ # input pipe
8
+ # append piped data as arguments
9
+ if !STDIN.tty?
10
+ pipe_data = STDIN.read
11
+ if pipe_data
12
+ args += pipe_data.split
13
+ end
14
+ end
15
+
16
+ # output pipe
17
+ # if !STDOUT.tty?
18
+
19
+ # end
20
+
4
21
  terminal = Morpheus::Terminal.new
5
- exit_code, err = terminal.execute(ARGV)
22
+ exit_code, err = terminal.execute(args)
6
23
  # raise err unless err.nil?
7
24
  exit exit_code
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Morpheus
3
3
  module Cli
4
- VERSION = "3.3.2"
4
+ VERSION = "3.3.2.1"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morpheus-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.2
4
+ version: 3.3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Estes