My name is Courtney (CJ) Oka
- Occupation: Professional typer @affirm
- Pronouns: She/Her
- Prefered Snack: All snacks! Leave no snacks behind
The interactive shell for Microsoft Azure CLI (Command Line Interface)
License: Other
For me, dark red error messages on a black background are quite hard to read. Is this something the Azure shell can control, and if so could you provide an option to configure it please (or default to something slightly higher contrast)? Thanks!
Steps to reproduce:
az account set --subscription
Behaviour:
The autocomplete list of subscriptions appears, but so does a message saying __main__.py account set: error: argument --subscription: expected one argument
. The cursor is pushed down to the next line and backspacing produces strange visual artefacts (the autocomplete list appears again slightly offset, with bits of the first one still visible, and the error message is also redisplayed). (Screenshot attached.)
Completions don't take into account prev. values like if resource group is set for 'vm show', and I do -n, it should only show names in the resource group like in the CLI.
When selecting an item from history, it doesn't exclude the defaulted scope from the command.
Maybe it should check if the string starts with the current scope and remove it.
Or maybe only show history for the current scope.
The more times you use the value from history, the longer and longer it gets!
In a new Python 3.5 virtual environment:
$ pip install az-cli-shell
...
$ az-cli
Error processing line 2 of /usr/local/lib/python3.5/site-packages/az_cli_shell-0.1.1a20-py3.5-nspkg.pth:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site.py", line 167, in addpackage
exec(line)
File "<string>", line 1, in <module>
KeyError: 'azure'
Remainder of file ignored
/usr/local/bin/python: Error while finding spec for 'azure.clishell' (ValueError: azure.clishell.__spec__ is None)
It installed version 0.1.1a20 then failed to start.
Might be related to the Python 2 CI issue.
$ az account show
{
"environmentName": "AzureCloud",
"id": "000-000-000-000",
"isDefault": true,
"name": "Azure SDK Infrastructure",
"state": "Enabled",
"tenantId": "000-000-000-000",
"user": {
"name": "[email protected]",
"type": "user"
}
}
root@a753aca2f5bd:/# az-cli
az>> account show
Please run 'az login' to setup account.
I'm running version az-cli-shell 0.1.1a17.
Steps to reproduce:
az
(space). Autocompletion list of commands appears (network, vm, keyvault, etc.)account
and hit space.Expected behaviour: autocompletion list of account commands appears.
Actual behaviour: list of account commands does not appear until you hit the first letter of a command (e.g. s
displays a list containing set
and show
, l
displays a list containing list
and list-locations
).
Additionally, after typing or selecting set
and hitting space, command options are not displayed until you type -
(and even then the command-specific options such as --subscription
are not displayed until you type --
).
Environment: Windows 10, Python 3.5.3, azure-cli 2.0.1, shell 0.1.1a21.
Steps to reproduce:
az account set --subscription
and hit the space bar.az account set --subscription Batch Test Subscription
.unrecognized arguments Test Subscription
.Expected behavior:
Subscription names with spaces should be quoted, e.g. az account set --subscription "Batch Test Subscription"
.
use shutil.get_terminal_size()
hangs on exit
backspace
window size thing
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.