client-ts icon indicating copy to clipboard operation
client-ts copied to clipboard

CLI improvements

Open gimenete opened this issue 3 years ago • 1 comments

  • [ ] Base class for all commands that support --json.
  • [ ] Better typing for run() methods.
  • [x] Utility methods for prompts and skip interactivity if --no-input is used or the terminal is not a TTY.
    • [ ] https://www.npmjs.com/package/@npmcli/ci-detect
  • [ ] Always return the full API response?
  • [x] Utilities for parsing flags that have also defaults depending on the context: workspace, database, branch.
  • [ ] Allow users to specify slug when creating a db.
  • [ ] Add a verbose option to print things such as the config file being used.
  • [ ] Document exit codes.
  • [ ] Validate identifiers before sending them to the server?
  • [ ] Support pnpm when installing the SDK in xata init
  • [x] Check if there's an API_KEY already in the .env file when writing to it
  • [ ] Support other paths for the .env file
  • [ ] Offer a command to generate/update API Key in the .env file without having to run xata init
  • [x] Add examples.
  • [x] Use suggestions in errors.

gimenete avatar May 24 '22 09:05 gimenete

  • [x] Save database url in project config file
  • [x] Instead of failing if no database url found, inquiry user with his available workspaces and databases. If user is in a project and has a project config file, inquiry question for saving it there.

SferaDev avatar May 26 '22 05:05 SferaDev