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

1import sys 

2from pathlib import Path 

3 

4from ase.cli.completion import update, CLICommand 

5 

6from gpaw.cli.main import commands 

7 

8# Path of the complete.py script: 

9path = Path(__file__).with_name('complete.py') 

10 

11CLICommand.cmd = f'complete -o default -C "{sys.executable} {path}" gpaw' 

12 

13if __name__ == '__main__': 

14 update(path, commands)