Branching Prompt

orion.core.io.interactive_commands.base_commands – CLI for conflict solving

…. …. TODO

class orion.core.io.interactive_commands.branching_prompt.BranchingPrompt(branch_builder)[source]

Interactive command prompt to solve the configurations conflicts between the parent configuration and the new one.

Methods

cmdloop() Start cmdloop of the prompt
columnize(list[, displaywidth]) Display a list of strings as a compact set of columns.
complete(text, state) Return the next possible completion for ‘text’.
complete_add(text, line, begidx, endidx) Auto-complete addition of new or changed dimensions
complete_code(text, line, begidx, endidx) Auto-complete based on possible code change types
complete_commandline(text, line, begidx, endidx) Auto-complete based on possible commandline change types
complete_config(text, line, begidx, endidx) Auto-complete based on possible script config change types
complete_name(text, line, begidx, endidx) Auto-completion of experiment name based on names in the EVC three.
complete_remove(text, line, begidx, endidx) Auto-complete deletion of missing dimensions
complete_rename(text, line, begidx, endidx) Auto-complete rename based on non-resolved missing dimensions and new dimensions conflicts
complete_reset(text, line, begidx, endidx) Auto-complete reset based on current resolutions
completedefault(*ignored) Method called to complete an input line when no command-specific complete_*() method is available.
default(line) Called on an input line when the command prefix is not recognized.
do_abort(options) Exit the prompt without saving
do_add(options) Add the given new or changed dimension to the configuration
do_algo(options) Resolve the algorithm conflict
do_auto(options) Automatically solve conflicts when no feedback from user is necessary.
do_code(options) Set the type of the code change
do_commandline(options) Set the type of the commandline change
do_commit(options) Exit the prompt and creates the adapters inside the builders
do_config(options) Set the type of the commandline change
do_diff(options) Print diff for all conflicts
do_h(options) Alias for help
do_help(options) Print help message for all commands
do_name(options) Change the name of the experiment
do_q(options) Alias for quit
do_quit(options) Exit the prompt without saving
do_remove(options) Remove the given missing dimension from the configuration
do_rename(options) Rename a dimension
do_reset(options) Revert a resolution and mark the conflict as non-resolved
do_shell(line) Run a shell command.
do_status(options) Display the current status of the conflicting configuration
emptyline() Called when an empty line is entered in response to the prompt.
get_commands() Get command names of the prompt
get_status([options]) Return a string representing the status
onecmd(line) Interpret the argument as though it had been typed in response to the prompt.
parseline(line) Parse the line into a command name and a string containing the arguments.
postcmd(stop, line) Hook method executed just after a command dispatch is finished.
postloop() Hook method executed once when the cmdloop() method is about to return.
precmd(line) Hook method executed just before the command line is interpreted, but after the input prompt is generated and issued.
preloop() Hook method executed once when the cmdloop() method is called.
solve_conflicts() Start the prompt for the interactive conflicts solving
complete_help  
completenames  
get_names  
print_topics  
cmdloop()[source]

Start cmdloop of the prompt

complete_add(text, line, begidx, endidx)[source]

Auto-complete addition of new or changed dimensions

complete_code(text, line, begidx, endidx)[source]

Auto-complete based on possible code change types

complete_commandline(text, line, begidx, endidx)[source]

Auto-complete based on possible commandline change types

complete_config(text, line, begidx, endidx)[source]

Auto-complete based on possible script config change types

complete_name(text, line, begidx, endidx)[source]

Auto-completion of experiment name based on names in the EVC three.

complete_remove(text, line, begidx, endidx)[source]

Auto-complete deletion of missing dimensions

complete_rename(text, line, begidx, endidx)[source]

Auto-complete rename based on non-resolved missing dimensions and new dimensions conflicts

complete_reset(text, line, begidx, endidx)[source]

Auto-complete reset based on current resolutions

do_abort(options)[source]

Exit the prompt without saving

do_add(options)[source]

Add the given new or changed dimension to the configuration

do_algo(options)[source]

Resolve the algorithm conflict

do_auto(options)[source]

Automatically solve conflicts when no feedback from user is necessary.

do_code(options)[source]

Set the type of the code change

do_commandline(options)[source]

Set the type of the commandline change

do_commit(options)[source]

Exit the prompt and creates the adapters inside the builders

do_config(options)[source]

Set the type of the commandline change

do_diff(options)[source]

Print diff for all conflicts

do_h(options)[source]

Alias for help

do_help(options)[source]

Print help message for all commands

do_name(options)[source]

Change the name of the experiment

do_q(options)[source]

Alias for quit

do_quit(options)[source]

Exit the prompt without saving

do_remove(options)[source]

Remove the given missing dimension from the configuration

do_rename(options)[source]

Rename a dimension

do_reset(options)[source]

Revert a resolution and mark the conflict as non-resolved

do_shell(line)[source]

Run a shell command. Ex: (orion) ! pwd

do_status(options)[source]

Display the current status of the conflicting configuration

get_commands()[source]

Get command names of the prompt

get_status(options=None)[source]

Return a string representing the status

solve_conflicts()[source]

Start the prompt for the interactive conflicts solving

orion.core.io.interactive_commands.branching_prompt.parse_command(f)[source]

Wrap command methods to automatically parse using parsers and catch errors to print stacktrace without leaving the prompt

orion.core.io.interactive_commands.branching_prompt.wrap_autocomplete(f)[source]

Wrap autocomplete to catch errors and print stacktrace