Comments (4)
You can do this:
aa<a:int32 show:number>("A number");
which gives:
cli> aa ?
<number> A number
But if I understand you correctly you want to have:
cli> aa ?
<a number> A number
Is that correct?
from cligen.
No I would like to have the option to use show so that I can display a multi word string when I tab.
So for example if I have the following syntax.
aa<int32 show:"Some number">("some help description");
So that when a user hits tab they see the following:
cli> aa (User hits TAB)
<Some number>
Then why I do ? I would see the following:
cli> aa ?
<Some number> some help description
I do not want to necessarily display the variable name for the keyword, but some text to describe a valid input for example or even example input. I would like to keep that separate from the help text. Would something like this be possible?
from cligen.
Added fix, please verify.
from cligen.
Yes it is working as expected, thanks!
from cligen.
Related Issues (20)
- Support cli over ssh HOT 2
- Can cligen handle multiple occurrence of the same variable ? HOT 1
- Custom Expansion Functions called twice on Pressing TAB
- Dump the CLI syntax tree generated from yang and .cli files in XML/tree format
- Check before validate in case of "when" statement
- Is there any way to read from the file , instead of reading from the stdin HOT 7
- Escaping with backslash(\) in variable strings cannot be done for backslash itself
- Display pipe command fails HOT 4
- Support sticky punctuation (no whitespace allowed) HOT 1
- Regarding the LTS release HOT 2
- Space after comma not allowed in pre-function parsing HOT 2
- Variable type 'bits' needed
- Space needed before pipes
- Conditional CLI HOT 2
- CLIGEN segmentation fault in V 6.2 HOT 3
- CLI types need additional attribute for customizing error messages
- Autocli: utilize `error-message` attribute from YANG
- A question about a callback for ? HOT 5
- Log in plugin cligen HOT 1
- CLI simple alias
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 cligen.