Comments (3)
Ok, it seems to be only partly the console's fault. Making only one call to args() can decrease the number of times args is called to 3. Those three calls result from the readline module calling the complete() function three times. No idea why it does that...
from ishell.
This is how readline works.
It'll ask for arguments until None is returned, so if you have 3 dynamic arguments, args() will be called 4 times.
from ishell.
Mh, but it seems kinda silly to me then that args() returns a list with all arguments every time..
Maybe I'm missing something here.
Anyways, I moved the computation logic away front he args() function, that already helped a lot.
from ishell.
Related Issues (20)
- Welcome message on entering the shell HOT 1
- Chained command shows ugly message to user when chain is incomplete
- Chained commands do not have nested help
- Display 'command not found' if the user tries to run a non existent command
- capture key ? and show help without press enter
- Command.args() has no command line visibility HOT 2
- License missing? HOT 1
- Python 3 support HOT 1
- Autocompletion completes to command, where it should complete to dynamic argument
- Support for arbitrary arguments to commands HOT 1
- Problem installing readline dep. HOT 1
- Error on test shell file. HOT 1
- Windows-compatible ishell not yet uploaded to PyPI HOT 4
- Support dynamic_args with spaces HOT 2
- Child command behavior HOT 1
- The command auto-completion will have problems when it hits a slash string HOT 1
- Suggestion: Add "help" dynamic arg to commands
- Reset code for prompt and completer is not executed when Ctrl+C is used to exit console. HOT 1
- ctrl+d exits uncleanly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ishell.