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 +4 -4
- data/bin/morpheus +18 -1
- data/lib/morpheus/cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 285ccc76f7accb168f7d4d141a0d22ef730d3583
|
4
|
+
data.tar.gz: cf48f1bb80eb08f0ec528258155da0579dcf13ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
22
|
+
exit_code, err = terminal.execute(args)
|
6
23
|
# raise err unless err.nil?
|
7
24
|
exit exit_code
|
data/lib/morpheus/cli/version.rb
CHANGED