morpheus-cli 3.6.17 → 3.6.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/morpheus/cli/shell.rb +2 -2
- data/lib/morpheus/cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e083e72d1e2b2d6bae51eb812f094c410fae2ffc923d752eb9614b052b54509
|
4
|
+
data.tar.gz: a3874e187ca876219b9221daf9ac323cddb804b2545e37519ccea82d8fd38915
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc0b1d85fcd28aced159ce23ff2c28082021f6910793d9e4167cf92428ed351372256fe670813316140038bd0bcbae97aed72f011f9a7c61ad254887061115eb
|
7
|
+
data.tar.gz: bae9b53d66149440c09ad594365922504879194cd975c346989e484ac0c29af369ef442d410bc8567e17633ab5b363d603026d33deec7512e168f1d3733f8278
|
data/lib/morpheus/cli/shell.rb
CHANGED
@@ -740,12 +740,12 @@ class Morpheus::Cli::Shell
|
|
740
740
|
# sort is a bit different for this command, the default sort is by number
|
741
741
|
# it sorts oldest -> newest, but shows the very last page by default.
|
742
742
|
if options[:sort] && ![:number, :command].include?(options[:sort])
|
743
|
-
|
743
|
+
sort_key = :number # nil
|
744
744
|
end
|
745
|
-
|
746
745
|
|
747
746
|
if options[:phrase] || sort_key || options[:direction] || options[:offset]
|
748
747
|
# this could be a large object...need to index our shell_history file lol
|
748
|
+
sort_key ||= :number
|
749
749
|
history_records = @history.keys.collect { |k| {number: k, command: @history[k]} }
|
750
750
|
if options[:direction] == 'desc'
|
751
751
|
history_records = history_records.sort {|x,y| y[sort_key] <=> x[sort_key] }
|
data/lib/morpheus/cli/version.rb
CHANGED