1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-11 05:17:41 +03:00

F #2764: Add option no-pager, to disable pagination. (#2798)

This commit is contained in:
Alejandro Huertas Herrero 2019-01-15 10:32:56 +01:00 committed by Ruben S. Montero
parent 666f361fd9
commit b2d8fe2a3f

View File

@ -71,8 +71,18 @@ module CLIHelper
:description => "Sets the delay in seconds for top command" :description => "Sets the delay in seconds for top command"
} }
NO_PAGER = {
:name => "no_pager",
:large => "--no-pager",
:format => String,
:description => "Disable pagination",
:proc => lambda { |o, options|
ENV['ONE_PAGER'] = 'cat' if File.exists?('/bin/cat')
}
}
#OPTIONS = [LIST, ORDER, FILTER, HEADER, DELAY] #OPTIONS = [LIST, ORDER, FILTER, HEADER, DELAY]
OPTIONS = [LIST, LISTCONF, DELAY, FILTER, CSV_OPT] OPTIONS = [LIST, LISTCONF, DELAY, FILTER, CSV_OPT, NO_PAGER]
# Sets bold font # Sets bold font
def CLIHelper.scr_bold def CLIHelper.scr_bold