codenvy-legacy / cli Goto Github PK
View Code? Open in Web Editor NEWcodenvy command line interface
codenvy command line interface
We should be able to pickup CSV, eighties, modern, etc
For example we got in real :
IDworkspace0kcnkdde3rxo5d9d
While we could have a short local identifier like "15" as in specification
Maybe the short ID could be handled on the server side
Instead of using session.getConsole().print which will bypass grep, less, more commands provided in interactive mode
As for the SDK project, we should provide unix shell scripts to launch the CLI (interactive or not) at the root level when the repository has been cloned
For now, only PreferencesManager#put
triggers a file dump, JsonPreferences#put
should notify its parent, notification propagated until the root one (PreferencesManager
), to trigger file dump. Idem for merge
and delete
methods.
For now there are scripts for Unix, we should also add windows script at the root folder of the CLI
Login command should register token
Also the token should be stored in a file so that could be used by other commands (when not using interactive CLI that share options in a map)
For now assembly depends on karaf tgz with all its transitive dependencies
As tgz is containing everything we can cut the dependencies
For now, hitting tab key is displaying all commands of Karaf (including codenvy)
We should have only codenvy commands by default
The log command will display the logs for a given runner (by providing its runner ID)
Due to limitation of Jackson readerForUpdating
, merge
method only a non conflicting preferences keys without overriding already existing ones.
Sometimes the color is not resetted and then when using CLI on windows, the foreground color is changed
A vote is currently being done : http://markmail.org/thread/dyov72b3lhfylcnm#query:+page:1+mid:dlzr46agvvs7w7cx+state:results
When using tab keys for command completion it will only display commands within the codenvy: namespace by default
The windows script change the current directory when it's finished
it shouldn't
For builders and runners
We could have color on the short ID
if we've
|12a73e1|
|098fd39|
|5d568e7|
the first 2 digits could be highlighted to tell that it can be used as a short identifier
so 12, 09 and 5d could be used in this case and could be in a different color
Process is a name exposed by Runner API but this term is never used in codenvy documentation so we should stay with "Runner ID" instead of "Process ID"
So we will have same command on windows and unix
Apache Karaf v3.0.2 is compliant but is not yet released
File structure proposal for environment storage:
{
"environments" : {
"florent_dev" : {
"url" : "http://dev.codenvy.com",
"username" : …,
"token" : …
},
"stephane_dev" : {
…
},
"prod" : {
"url" : "https://codenvy.com",
…
}
}
}
Restrict env by command line arg:
list --env=florent_dev
When using tab key of run command, the list of projects IDs should be given in the prompt
To get only one preferences file and make CredentialsStore delegate its storage to it.
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.