Coverage for gpaw/cli/completion.py: 88%
8 statements
« prev ^ index » next coverage.py v7.7.1, created at 2025-07-09 00:21 +0000
« prev ^ index » next coverage.py v7.7.1, created at 2025-07-09 00:21 +0000
1import sys
2from pathlib import Path
4from ase.cli.completion import update, CLICommand
6from gpaw.cli.main import commands
8# Path of the complete.py script:
9path = Path(__file__).with_name('complete.py')
11CLICommand.cmd = f'complete -o default -C "{sys.executable} {path}" gpaw'
13if __name__ == '__main__':
14 update(path, commands)