Print included query info fields as yaml #702
Annotations
5 errors and 1 warning
/home/runner/work/fauna-shell/fauna-shell/test/query.mjs.query v10 can output an error message:
test/query.mjs#L285
expected stderr to have been called with arguments { test: [Function], message: 'match(/test query/)' }
Call 1:
'"\\u001b[0mfauna query [fql]\\u001b[0m\\n\\u001b[0m\\u001b[0m\\n\\u001b[0mRun an FQL query.\\u001b[0m\\n\\u001b[0m\\u001b[0m\\n\\u001b[0mAPI:\\u001b[0m\\n\\u001b[0m -u, --user User used to run the command. You must first log in as the user using `fauna login`. [string] [default: \\"default\\"]\\u001b[0m\\n\\u001b[0m --local Use a local Fauna container. If not otherwise specified, sets `--url` to http://localhost:8443 and `--secret` to \\"secret\\". [boolean] [default: false]\\u001b[0m\\n\\u001b[0m --url URL for Fauna Core HTTP API requests made by the command. Defaults to https://db.fauna.com. [string]\\u001b[0m\\n\\u001b[0m --secret Authentication secret for Fauna Core HTTP API requests made by the command. Mutually exclusive with `--database` and `--role`. [string]\\u001b[0m\\n\\u001b[0m --accountKey Fauna account key used for authentication. Negates the need for a user login. The key is used to generate short-lived database secrets for the CLI. Mutually exclusive with `--user` and `--secret`. [string]\\u001b[0m\\n\\u001b[0m -d, --database Path, including Region Group identifier and hierarchy, for the database to run the command in. Mutually exclusive with `--secret`. [string]\\u001b[0m\\n\\u001b[0m -r, --role Role used to run the command. Mutually exclusive with `--secret`. [string]\\u001b[0m\\n\\u001b[0m -v, --apiVersion FQL version to use. [string] [choices: \\"4\\", \\"10\\"] [default: \\"10\\"]\\u001b[0m\\n\\u001b[0m -f, --format Output format for the query. When present, --json takes precedence over --format. Only applies to v10 queries. [string] [choices: \\"fql\\", \\"json\\"] [default: \\"fql\\"]\\u001b[0m\\n\\u001b[0m --typecheck Enable typechecking. Defaults to the typechecking setting of the database. [boolean]\\u001b[0m\\n\\u001b[0m --timeout Maximum runtime, in milliseconds, for Fauna Core HTTP API requests made by the command. [number] [default: 5000]\\u001b[0m\\n\\u001b[0m --performanceHints Output the performance hints for the current query or nothing when no hints are available. Only applies to v10 queries. Sets the \'--includes summary\' [boolean] [default: false]\\u001b[0m\\n\\u001b[0m\\u001b[0m\\n\\u001b[0mPositionals:\\u001b[0m\\n\\u001b[0m fql FQL query to run. Use `-` to read from stdin. [string]\\u001b[0m\\n\\u001b[0m\\u001b[0m\\n\\u001b[0mOutput:\\u001b[0m\\n\\u001b[0m --color Enable color formatting for the output. Uses ANSI escape codes. Enabled by default if supported by the terminal. Use `--no-color` or `--color=false` to disable. [boolean] [default: true]\\u001b[0m\\n\\u001b[0m --json Output the results as JSON. [boolean] [default: false]\\u001b[0m\\n\\u001b[0m --quiet Only output the results of the command. Useful for scripts, CI/CD, and automation workflows. [boolean] [default: false]\\u001b[0m\\n\\u001b[0m\\u001b[0m\\n\\u001b[0mConfig:\\u001b[0m\\n\\u001b[0m --config Path to a CLI config file to use. Use `--profile` to select a profile from the file. [string] [default: \\".\\"]\\u001b[0m\\n\\u001b[0m -p, --profile Profile from the CLI config file to use. Each profile specifies a set of CLI settings. Defaults to the \'default\' profile when a config file is provided. [string]\\u001b[0m\\n\\u001b[0m\\u001b[0m\\n\\u001b[0mDebug:\\u001b[0m\\n\\u001b[0m --verboseComponent Components to emit diagnostic logs for. Takes precedence over the `--verbosity` flag. Pass components as a space-separated list, such as `--verboseComponent fetch error`, or as separate flags, such as `--verboseComponent fetch --verboseComponent error`. [array] [choices: \\"fetch\\", \\"error\\", \\"config\\", \\"argv\\", \\"creds\\"] [default: []]\\u001b[0m\\n\\u001b[0m --verbosity Maximum verbosity level for log messages. Accepts 1 (fatal) to 5 (debug). Lower values represent more critical logs. [number] [default: 0]\\u001b[0m\\n\\u001b[0m\\u001b[0m\\n\\u001b[0mOptions:\\u001b[0m\\n\\u001b[0m -h, --help Show help. [boolean]\\u001b[0m\\n\\u001b[0m --version Show version number [boolean]\\u001b[0m\\n\\u001b[0m --include Select additional query information to include in the output [array] [choices: \\"all\\", \\"txnTs\\", \\"schemaVersion\\", \\"summary\\", \\"queryTags\\", \\"stats\\"] [default: []]\\u001b[0m\\n\\u001b[0m -i, --input Path to a file containing an FQL query to run. [string]\\u001b[0m\\n\\u001b[0m -o, --output Path to a file where query results are written. Defaults to stdout. [string]\\u001b[0m\\n\\u001b[0m\\u001b[0m\\n\\u001b[0mExamples:\\u001b[0m\\n\\u001b[0m fauna query \\"Collection.all()\\" --database us/example Run the query in the \'us/example\' database and write the results to stdout.\\u001b[0m\\n\\u001b[0m fauna query \\"Collection.all()\\" --database us/example --role server Run the query in the \'us/example\' database using the \'server\' role.\\u001b[0m\\n\\u001b[0m fauna query \\"Collection.all()\\" --secret my-secret Run the query in the database scoped to a secret.\\u001b[0m\\n\\u001b[0m fauna query -i /path/to/query.fql --database us/example Run the query from a file.\\u001b[0m\\n\\u001b[0m echo \\"1 + 1\\" | fauna query - --database us/example Run the query from stdin.\\u001b[0m\\n\\u001b[0m fauna query -i /path/to/queries.fql --output /tmp/result.json --database us/example Run the query and write the results to a file.\\u001b[0m\\n\\n\\u001b[31mAn unexpected error occurred...\\u001b[39m\\n\\u001b[31m\\u001b[39m\\n\\u001b[31mcolor is not defined\\u001b[39m"' match(/test query/)
Call 2:
'"\\u001b[31m\\u001b[39m\\n\\u001b[31mIf you believe this is a bug, please report this issue on GitHub: https://github.com/fauna/fauna-shell/issues\\u001b[39m"' match(/test query/)
|
test (22.x)
Process completed with exit code 1.
|
test (20.x)
The job was canceled because "_22_x" failed.
|
test (20.x)
The operation was canceled.
|
test (20.x)
Process completed with exit code 1.
|
test (22.x)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|