Giter Site home page Giter Site logo

azure-cli-interactive-shell's Introduction

Hello, GitHub

My name is Courtney (CJ) Oka

  • Occupation: Professional typer @affirm
  • Pronouns: She/Her
  • Prefered Snack: All snacks! Leave no snacks behind

azure-cli-interactive-shell's People

Forkers

derekbekoe

azure-cli-interactive-shell's Issues

Colour configuration options

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!

Autocompletion error in `az account set --subscription`

Steps to reproduce:

  1. Type az account set --subscription
  2. Hit space bar to trigger autocompletion

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.)

az-shell-set-subscription

History and scope don't work well together

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!

0.1.1a20 error running shell

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.

Logged into CLI but not logged into shell?

$ 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.

`az account` does not display autocompletion lists on space

Steps to reproduce:

  1. Type az (space). Autocompletion list of commands appears (network, vm, keyvault, etc.)
  2. Type or select 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.

`az account set --subscription` autocompletion does not work if subscription name contains spaces

Steps to reproduce:

  1. Create an Azure subscription with spaces in its name.
  2. Type az account set --subscription and hit the space bar.
  3. An autocompletion list of subscriptions appears.
  4. Select the subscription with spaces in its name.
  5. The command autocompletes with the name, e.g. az account set --subscription Batch Test Subscription.
  6. Hit return.
  7. Command returns an error for the words in the subscription name after the first e.g. unrecognized arguments Test Subscription.

Expected behavior:

Subscription names with spaces should be quoted, e.g. az account set --subscription "Batch Test Subscription".

Windows

use shutil.get_terminal_size()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.