Comments (6)
Do you have an example @navidshaikh?
I asked because if I understood this request correctly, you would have the text moved to a different file or location from the command definition and have a constant in it's place in the definition.
While an interesting suggestion it would result in less readable code --- need to read text file or constant file and code for command.
I kind of like having the command into one place. I can see moving the runE(...)
function out into it's own function or even file but the command definition should include all that is needed IMO.
from client.
I asked because if I understood this request correctly, you would have the text moved to a different file or location from the command definition and have a constant in it's place in the definition.
That's correct, but in an organized manner, not like a text-file as such.
This came after suggestion from @cppforlife during a PR review.
IMO, keeping the constants part separate from definitions helps being consistent in the help/example language/grammar used across commands.
I do not have an example right now, but I plan to work on this once we have the v0.1 issues sorted.
from client.
IMO, keeping the constants part separate from definitions helps being consistent in the help/example language/grammar used across commands.
I think we should avoid separating text to the code. Separating is premature optimization IMO.
from client.
This came after suggestion from @cppforlife during a PR review.
curious which suggestion?
from client.
curious which suggestion?
@cppforlife It's for aliases, here.
from client.
Let's keep text describing flags with the flags, and command usage with the command for now. It's more readable that way.
from client.
Related Issues (20)
- New plugin "kn-plugin-search" for plugin discovery HOT 3
- Traffic split calculation should only use traffic-split revisions HOT 1
- Error: no Auth Provider found for name "azure" HOT 2
- Change to Sugar Controller will impact inject Broker functionality option of "Kn trigger create" HOT 3
- Issues with go-licenses HOT 4
- Add support for different volume types HOT 6
- Can't create private service using --no-cluster-local HOT 3
- Add `url` option for `kn service list --output` HOT 2
- Add support for providing sink spec in GVR format
- Add config option to specify `readOnly` volumes HOT 2
- Add `--scale-activation` flag to match new Serving option HOT 5
- Option to specify Node Selector HOT 2
- support uninstallation of local cluster using kn HOT 6
- Compile errors with Go 1.20 HOT 2
- kn does not show new trigger filters HOT 2
- Service export should handle securityContext field HOT 9
- Missing example of fully qualified GVR in`--sink` flag HOT 3
- Eventing TLS: support Eventing TLS in kn-plugin-event HOT 5
- `kn trigger update --help` information is incorrect HOT 2
- CLI: Add support for EventType v1beta2 HOT 6
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 client.