You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: azdev/help.py
+19-8Lines changed: 19 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -15,20 +15,31 @@
15
15
helps['setup'] ="""
16
16
short-summary: Set up your environment for development of Azure CLI command modules and/or extensions.
17
17
examples:
18
-
- name: Fully interactive setup.
18
+
- name: Fully interactive setup (Must be run in an existing virtual environment).
19
19
text: azdev setup
20
20
21
-
- name: Install only the CLI in dev mode and search for the existing repo.
22
-
text: azdev setup -c
21
+
- name: Install CLI and setup an extensions repo in an existing virtual environment. Will create a azure directory and config in the current virtual environment.
22
+
Note the existing virtual environment could created by VENV or PYENV.
- name: Install public CLI and setup an extensions repo. Do not install any extensions.
25
+
- name: Same as above, but install the `alias` extension in the existing virtual environment too.
26
+
text: azdev setup -c azure-cli -r azure-cli-extensions -e alias
27
+
28
+
- name: Same as above, but will use the CLI repo path in local .azdev config, or the one in global .azdev config if not found the local one.
25
29
text: azdev setup -r azure-cli-extensions
26
30
27
-
- name: Install CLI in dev mode, along with the extensions repo. Auto-find the CLI repo and install the `alias` extension in dev mode.
28
-
text: azdev setup -c -r azure-cli-extensions -e alias
31
+
- name: Same as above, but only install CLI without setup an extensions repo.
32
+
text: azdev setup -c azure-cli
33
+
34
+
- name: Install CLI and setup an extensions repo in a new virtual environment. Will create a azure directory and config in the current virtual environment.
35
+
Note -s is using VENV to create a new virtual environment, should un-install PYENV if you have.
Copy file name to clipboardExpand all lines: azdev/params.py
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -34,10 +34,13 @@ def load_arguments(self, _):
34
34
c.argument('git_repo', options_list='--repo', arg_group='Git', help='Path to the Git repo to check.')
35
35
36
36
withArgumentsContext(self, 'setup') asc:
37
-
c.argument('cli_path', options_list=['--cli', '-c'], nargs='?', const=Flag, help="Path to an existing Azure CLI repo. Omit value to search for the repo or use special value 'EDGE' to install the latest developer edge build.")
38
-
c.argument('ext_repo_path', options_list=['--repo', '-r'], nargs='+', help='Space-separated list of paths to existing Azure CLI extensions repos.')
37
+
c.argument('cli_path', options_list=['--cli', '-c'], type=str, help="Path to an existing Azure CLI repo. Use special value 'EDGE' to install the latest developer edge build. Note: if not provide, will use the one in local .azdev config, if not exist will use the one in global .azdev config.")
c.argument('ext', options_list=['--ext', '-e'], nargs='+', help="Space-separated list of extensions to install initially. Use '*' to install all extensions.")
40
40
c.argument('deps', options_list=['--deps-from', '-d'], choices=['requirements.txt', 'setup.py'], default='requirements.txt', help="Choose the file to resolve dependencies.")
41
+
c.argument('set_env', options_list=['--set-env', '-s'], type=str, help="Will create a virtual enviroment with the given env name")
42
+
c.argument('copy', options_list='--copy', action='store_true', help="Will copy entire global .azure diretory to the newly created virtual enviroment .azure direcotry if it exist")
43
+
c.argument('use_global', options_list=['--use-global', '-g'], action='store_true', help="Will use the default global system .azure config")
41
44
42
45
withArgumentsContext(self, 'test') asc:
43
46
c.argument('discover', options_list='--discover', action='store_true', help='Build an index of test names so that you don\'t need to specify fully qualified test paths.')
0 commit comments