28msec / 28 Goto Github PK
View Code? Open in Web Editor NEWCommand-Line Utility for 28.io
Home Page: http://28.io
License: Apache License 2.0
Command-Line Utility for 28.io
Home Page: http://28.io
License: Apache License 2.0
vagrant@sausalito-devel-2-4-0:~/sausalito/portal.28.io/queries$ 28 upload test-portal -d - oyes
Overwrite: /modules/io/28/apps/config.jq (2015-04-09T12:17:56+00:00) with /modules/io/28/apps/config.jq
If I have a query called /public/users/get.jq, it appears in the list when I run 28 download PROJECTNAME -o yes -d -s but does not appear when I run 28 upload PROJECTNAME -o yes -d -s.
Williams-MacBook-Pro:prismhr wcandillon$ 28 datasources set prismhr -c datasources.json
Listing datasources...
Updating datasources...
Done.
Williams-MacBook-Pro:prismhr wcandillon$ 28 datasources list prismhr
Listing datasources...
@MatthiasBrantner any suggestions?
vagrant@sausalito-devel-2-4-0:~/sausalito/portal.28.io/queries$ 28 upload test-portal
Overwrite: /public/account-billing.jq (2015-04-09T12:08:36+00:00) with /public/account-billing.jq (2015-04-09T09:15:52.000Z)? Y/N canceled
<<<<<I pressed CTRL-C
undefined:undefined
Error: canceled
at Interface. (/usr/lib/node_modules/28/node_modules/read/lib/read.js:66:13)
at Interface.emit (events.js:92:17)
at Interface._ttyWrite (readline.js:621:16)
at ReadStream.onkeypress (readline.js:100:10)
at ReadStream.emit (events.js:98:17)
at emitKey (readline.js:1096:12)
at ReadStream.onData (readline.js:841:14)
at ReadStream.emit (events.js:95:17)
at ReadStream. (_stream_readable.js:765:14)
at ReadStream.emit (events.js:92:17)
for instance: public/#foo.jq
e.g:
vagrant@sausalito-devel-2-4-0:/sausalito/prismhr/queries$ 28 create project prismhr/sausalito/prismhr/queries$
vagrant@sausalito-devel-2-4-0:
while the correct syntax is 28 projects create prismhr
28 crashes if temporary files are found, like so:
[{"code":"ETIMEDOUT","errno":"ETIMEDOUT","syscall":"read"},{"response":{"readable":false,"domain":null,"_maxListeners":10,"httpVersion":"1.1","complete":true,"_pendingIndex":0,"url":"","method":null,"statusCode":400,"_consuming":true,"_dumped":false,"httpVersionMajor":1,"httpVersionMinor":1,"upgrade":false,"body":"{ \"request_id\" : \"54f850f754641069a681e896\", \"context\" : \"edinet-dev.28.io\", \"description\" : \"The query path must end with \\\".jq\\\" or \\\".xq\\\".\", \"message\" : \"The ... (truncated)
It would be nice if it could just ignore files with other extensions than .jq and .xq
When deleting orphaned queries, empty folders should be removed as well.
For instance
Williams-MacBook-Air-2:test wcandillon$ ../28.io-cli/bin/28 download testbug -d
Refreshing API tokens...
Delete <local>/public/components/for-archives-and-disclosures.jq
Will result in public/components to be left as an empty directory.
The cli should be able to evaluate queries just like Zorba.
At the moment the file extension .xq is not support for modules.
Uploading a module as foo.xq will store it as foo.xq.xq on the server.
The datetime formatting should be nicer. A diff could also be displayed.
Currently all operations are executed sequentially which result in slow command execution.
@MatthiasBrantner re-enabling the request to execute non-sequentially might cause the segfault to appear again.
e.g:
vagrant@sausalito-devel-2-4-0:/sausalito/sandbox/portal$ 28 create test-portal/sausalito/sandbox/portal$ npm --version
vagrant@sausalito-devel-2-4-0:
1.4.28
Login in the 28 CLI
Create a project not through the 28 CLI
Try to download the project
Unauthorized error
Expected behaviour: use the refresh token to refresh the token and perform the operation
Users should be able to run a watch command that will upload queries automatically on change.
Example:
Williams-MacBook-Air-2:test wcandillon$ ../28/bin/28 download lens
Refreshing API tokens...
Project undefined wasn't found.
Run '28 projects' for more information.
Currently the client tries to refresh tokens even if they are expired.
In case of expiration, the login prompt should be displayed.
As a 28 user
I would like to have a setting to ignore some queries/modules
such that I can filter out the lib/io/28/api modules.
As a 28 user
I would like to easily be able to delete all queries from a project
such that I can start fresh and don't need to click on every query in the UI.
E.g.
28 truncate my-project
28 upload xbrl-msb -s
Refreshing API tokens...
Upload public/.DS_Store
Overwrite : /public/AdHocQuery.jq (2014-02-06T22:46:42.000Z) with /public/AdHocQuery.jq (2014-02-06T22:18:55.000Z)? Y/N y
undefined
The README should mention the .28.json files and have its options documented.
Williams-MacBook-Pro:tmp wcandillon$ 28 projects create FooBarWorld
Creating Project FooBarWorld...
Refreshing Tokens...
API Tokens refreshed.
Created FooBarWorld.
Williams-MacBook-Pro:tmp wcandillon$ 28 download FooBarWorld
Refreshing Tokens...
API Tokens refreshed.
Project not found: FooBarWorld
Williams-MacBook-Pro:tmp wcandillon$ 28 download foobarworld
All done.
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.