Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command line CLI should allow (but not require) wrapping code in ask {} #522

Open
mhagmajer opened this issue Oct 21, 2020 · 1 comment
Open
Labels
AskScript ./src/askscript/** DX/CLI/Playground developer experience first-timers-only good first issue Good for newcomers

Comments

@mhagmajer
Copy link
Contributor

Currently when people wrap their code with ask {} when using the command line CLI tool, they get the following error:

marcin@Marcins-MacBook-Pro-2 askql % npm run cli

> [email protected] cli /Users/marcin/Repositories/askql
> node dist/cli.js

Welcome to AskQL CLI!

For multi-line mode please type:
     .editor
🦄 ask {}
Uncaught:
Error [SyntaxError]: Expected " ", "(", ".", "//", ":", ";", "=", "[", "\n", "\r", "\t", "}", [/], or [\-!<>+*\^%=&|] but "{" found.
Location: {
  "start": {
    "offset": 10,
    "line": 2,
    "column": 5
  },
  "end": {
    "offset": 11,
    "line": 2,
    "column": 6
  }
}
🦄 

Then command line should allow wrapping code in ask {} and not show this confusing error.

@mhagmajer mhagmajer added good first issue Good for newcomers AskScript ./src/askscript/** DX/CLI/Playground developer experience first-timers-only labels Oct 21, 2020
@RISHIKESHk07
Copy link

@mhagmajer would like try this out , i have an idea about graphql ? would that be enough to tackle this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AskScript ./src/askscript/** DX/CLI/Playground developer experience first-timers-only good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants