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

Replace --project-directory with --fsl-directory #546

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/commands/local.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,14 @@
description:
"User-defined priority for the database. Valid only if --database is set.",
},
"project-directory": {
"fsl-directory": {
type: "string",
alias: ["dir", "directory"],
description:
"Path to a local directory containing .fsl files for the database. Valid only if --database is set.",
},
})
.check((argv) => {

Check warning on line 200 in src/commands/local.mjs

View workflow job for this annotation

GitHub Actions / lint

Arrow function has a complexity of 11. Maximum allowed is 10
if (argv.maxAttempts < 1) {
throw new ValidationError("--max-attempts must be greater than 0.");
}
Expand Down
2 changes: 1 addition & 1 deletion src/commands/schema/schema.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import pushCommand from "./push.mjs";
import statusCommand from "./status.mjs";

export const localSchemaOptions = {
"project-directory": {
"fsl-directory": {
alias: ["directory", "dir"],
type: "string",
description:
Expand Down
2 changes: 1 addition & 1 deletion test/local.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Please pass a --host-port other than '8443'.",
[
"--database Foo --dir ./bar ",
"--database Foo --directory ./bar ",
"--database Foo --project-directory ./bar",
"--database Foo --fsl-directory ./bar",
].forEach((args) => {
it("Creates a schema if requested", async () => {
const baseUrl = "http://0.0.0.0:8443/schema/1";
Expand Down
Loading