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

[TABJS-11] Improve --help comments for create table command #90

Open
dtbuchholz opened this issue Nov 21, 2023 · 0 comments
Open

[TABJS-11] Improve --help comments for create table command #90

dtbuchholz opened this issue Nov 21, 2023 · 0 comments
Labels
cli Created by Linear-GitHub Sync Improvement Created by Linear-GitHub Sync

Comments

@dtbuchholz
Copy link
Contributor

When creating a table, the help flag should explain the differences between the schema and prefix vs passing. Raw SQL CREATE statement.

❯ table create -h
tableland create [schema] [prefix]

Create a new table

Positionals:
  schema  SQL table schema, or full create statement (skip to read from stdin)
                                                                        [string]

Options:
  -h, --help                 Show help                                 [boolean]
  -V, --version              Show version number                       [boolean]
      --config               Path to JSON config file
      --baseUrl              The URL of your Tableland validator        [string]
  -c, --chain                The EVM chain to target                    [string]
      --enableEnsExperiment  Enable ENS experiment                     [boolean]
      --ensProviderUrl       Enable ENS experiment                      [string]
  -k, --privateKey           Private key string                         [string]
  -p, --providerUrl          JSON RPC API provider URL (e.g., https://eth-sepoli
                             a.g.alchemy.com/v2/123abc123a...)          [string]
  -a, --aliases              Path to table aliases JSON file (e.g., ./tableland.
                             aliases.json)                              [string]
      --prefix               Table name prefix (ignored if full create statement
                              is provided)                              [string]
      --ns                   ENS namespace to resolve schema from (experimental)
                                                                        [string]
  -f, --file                 Get statement from input file

See original issue here.

From SyncLinear.com | TABJS-11

@dtbuchholz dtbuchholz added cli Created by Linear-GitHub Sync Improvement Created by Linear-GitHub Sync labels Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Created by Linear-GitHub Sync Improvement Created by Linear-GitHub Sync
Projects
None yet
Development

No branches or pull requests

1 participant