forked from hail-is/hail
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[hailctl] Autocomplete for hailctl config {get,set,unset} (hail-is#13224
) To get this to work, I had to run the following command: ``` hailctl --install-completion zsh ``` And then add this line to the end of the ~/.zshrc file: `autoload -Uz compinit && compinit`
- Loading branch information
Showing
15 changed files
with
324 additions
and
72 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
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
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
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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
from .user_config import (get_user_config, get_user_config_path, | ||
get_remote_tmpdir, configuration_of) | ||
from .deploy_config import get_deploy_config, DeployConfig | ||
from .variables import ConfigVariable | ||
|
||
__all__ = [ | ||
'get_deploy_config', | ||
'get_user_config', | ||
'get_user_config_path', | ||
'get_remote_tmpdir', | ||
'DeployConfig', | ||
'configuration_of' | ||
'ConfigVariable', | ||
'configuration_of', | ||
] |
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,20 @@ | ||
from enum import Enum | ||
|
||
|
||
class ConfigVariable(str, Enum): | ||
DOMAIN = 'domain' | ||
GCS_REQUESTER_PAYS_PROJECT = 'gcs_requester_pays/project' | ||
GCS_REQUESTER_PAYS_BUCKETS = 'gcs_requester_pays/buckets' | ||
BATCH_BUCKET = 'batch/bucket' | ||
BATCH_REMOTE_TMPDIR = 'batch/remote_tmpdir' | ||
BATCH_REGIONS = 'batch/regions' | ||
BATCH_BILLING_PROJECT = 'batch/billing_project' | ||
BATCH_BACKEND = 'batch/backend' | ||
QUERY_BACKEND = 'query/backend' | ||
QUERY_JAR_URL = 'query/jar_url' | ||
QUERY_BATCH_DRIVER_CORES = 'query/batch_driver_cores' | ||
QUERY_BATCH_WORKER_CORES = 'query/batch_worker_cores' | ||
QUERY_BATCH_DRIVER_MEMORY = 'query/batch_driver_memory' | ||
QUERY_BATCH_WORKER_MEMORY = 'query/batch_worker_memory' | ||
QUERY_NAME_PREFIX = 'query/name_prefix' | ||
QUERY_DISABLE_PROGRESS_BAR = 'query/disable_progress_bar' |
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
Oops, something went wrong.