forked from gopinath-langote/1build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gopinath-langote#96 Preliminary command completion
- Loading branch information
1 parent
da89642
commit 750b0b1
Showing
6 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/bash | ||
_1build_completions() | ||
{ | ||
COMPREPLY=($(compgen -W "$(1build -lr | sed 's/\\t//')" -- "${COMP_WORDS[COMP_CWORD]}")) | ||
} | ||
|
||
complete -F _1build_completions 1build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from onebuild.command import Command | ||
from onebuild.config_parser import parse_project_config | ||
from onebuild.utils import config_string | ||
|
||
|
||
class ListRawCommand(Command): | ||
|
||
def execute(self, arg_parser, arguments, build_file_name, command_name): | ||
project = parse_project_config(build_file_name) | ||
print(project.get_command_names()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters