Branching Prompt

CLI for conflict solving

Launch the interactive prompt and call the related commands

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

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

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_orion_version(options)

Resolve the orion version conflict

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

get_commands()

Get command names of the prompt

get_status([options])

Return a string representing the status

solve_conflicts()

Start the prompt for the interactive conflicts solving

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_orion_version(options)[source]

Resolve the orion version conflict

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