Skip to content

Commit

Permalink
fix: enable list_sessions for session completion (#699)
Browse files Browse the repository at this point in the history
Otherwise we end up erroring out due to no session being selected (which
in turn errors out due to global color setting not finalized/available
at this phase yet.)
  • Loading branch information
scop committed Apr 22, 2023
1 parent 301354f commit 45acf03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nox/_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ def _session_completer(
prefix: str, parsed_args: argparse.Namespace, **kwargs: Any
) -> list[str]:
global_config = parsed_args
global_config.list_sessions = True
module = load_nox_module(global_config)
manifest = discover_manifest(module, global_config)
filtered_manifest = filter_manifest(manifest, global_config)
Expand Down

0 comments on commit 45acf03

Please sign in to comment.