src/orion/core/io/interactive_commands/branching_prompt.py
def _complete_add_new_or_missing(self, conflict, text, line, begidx, endidx):
        """Auto-complete addition of new dimensions or deletion of missing dimensions"""
        dim_is_categorical = conflict.dimension.type == "categorical"

        if len(line.split(" ")) == 3:
            return ["--default-value "]
        elif len(line.split(" ")) == 4 and dim_is_categorical:
            return self._get_completions(
                [repr(f) for f in conflict.dimension.categories], text
            )

        return []
Auto-complete addition of new dimensions or deletion of missing dimensions
Auto-complete addition of new dimensions or deletion of missing dimensions
Auto - complete addition of new dimensions or deletion of missing dimensions
def _complete_add_new_or_missing(self, conflict, text, line, begidx, endidx):
        dim_is_categorical = conflict.dimension.type == "categorical"
        if len(line.split(" ")) == 3:
            return ["--default-value "]
        elif len(line.split(" ")) == 4 and dim_is_categorical:
            return self._get_completions(
                [repr(f) for f in conflict.dimension.categories], text
            )
        return []
def _complete_add_new_or_missing ( self , conflict , text , line , begidx , endidx ) : dim_is_categorical = conflict . dimension . type == "categorical" if len ( line . split ( " " ) ) == 3 : return [ "--default-value " ] elif len ( line . split ( " " ) ) == 4 and dim_is_categorical : return self . _get_completions ( [ repr ( f ) for f in conflict . dimension . categories ] , text ) return [ ]
Auto-complete addition of new dimensions or deletion of missing dimensions
Auto - complete addition of new dimensions or deletion of missing dimensions
"""Auto-complete addition of new dimensions or deletion of missing dimensions"""
self
conflict
text
line
begidx
endidx