|
|
|
Description |
Implementation of command-line functions.
This module holds the common cli-related functions for the binaries,
separated into this module since Utils.hs is used in many other places
and this is more IO oriented.
|
|
Synopsis |
|
|
|
Documentation |
|
defaultLuxiSocket :: FilePath | Source |
|
The default value for the luxi socket
|
|
|
Command line options structure.
| Constructors | Options | | optShowNodes :: (Maybe [String]) | Whether to show node status
| optShowInsts :: Bool | Whether to show the instance map
| optShowCmds :: (Maybe FilePath) | Whether to show the command list
| optOneline :: Bool | Switch output to a single line
| optOutPath :: FilePath | Path to the output directory
| optNoHeaders :: Bool | Do not show a header line
| optNodeFile :: FilePath | Path to the nodes file
| optNodeSet :: Bool | The nodes have been set by options
| optInstFile :: FilePath | Path to the instances file
| optInstSet :: Bool | The insts have been set by options
| optNodeSim :: (Maybe String) | Cluster simulation mode
| optMaxLength :: Int | Stop after this many steps
| optMaster :: String | Collect data from RAPI
| optLuxi :: (Maybe FilePath) | Collect data from Luxi
| optExecJobs :: Bool | Execute the commands via Luxi
| optOffline :: [String] | Names of offline nodes
| optINodes :: Int | Nodes required for an instance
| optISpec :: RSpec | Requested instance specs
| optTieredSpec :: (Maybe RSpec) | Requested specs for tiered mode
| optMinScore :: Score | The minimum score we aim for
| optMcpu :: Double | Max cpu ratio for nodes
| optMdsk :: Double | Max disk usage ratio for nodes
| optDiskMoves :: Bool | Allow disk moves
| optDynuFile :: (Maybe FilePath) | Optional file with dynamic use data
| optExTags :: (Maybe [String]) | Tags to use for exclusion
| optVerbose :: Int | Verbosity level
| optShowVer :: Bool | Just show the program version
| optShowHelp :: Bool | Just show the help
|
|
| Instances | |
|
|
|
Default values for the command line options.
|
|
|
Abrreviation for the option type
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Usage info
|
|
|
:: [String] | The command line arguments
| -> String | The program name
| -> [OptType] | The supported command line options
| -> IO (Options, [String]) | The resulting options and leftover
arguments
| Command line parser, using the options structure.
|
|
|
|
A shell script template for autogenerated scripts.
|
|
Produced by Haddock version 0.8 |