new Main()
Constructs the Main class and initializes the command line parsing and execution.
Source
Members
cmdCommand
Type
-
Command
Source
stateMainState
Type
Source
Methods
asyncprotected
configure()
Configures the state of Main based on the environment and command-line options. This should be called before starting a processor to carry out work.
Source
async
request(resource, optionsopt, command)
Runs a StashKu RESTful GET request and outputs the results to file or console.
Parameters
-
resource
StringThe name of the target resource in the StashKu resource.
-
options
CLI.GetCommandLineOptions|CLI.OptionsCommandLineOptions<optional>
The CLI options specified in object format.
-
command
*The CLI command that is being run.
Source
async
utility(resource, optionsopt, command)
Runs a local http server that provides a browser-based utility for testing models trying out StashKu requests.
Parameters
-
resource
StringThe name of the target resource in the StashKu resource.
-
options
CLI.GetCommandLineOptions|CLI.OptionsCommandLineOptions<optional>
The CLI options specified in object format.
-
command
*The CLI command that is being run.