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

Mark things as beta #311

Merged
merged 3 commits into from
Oct 16, 2023
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
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -816,9 +816,6 @@ Shows help for the Fauna CLI.
```sh
faunadb shell

VERSION
fauna-shell/1.1.0 darwin-x64 node-v20.6.0

USAGE
$ fauna [COMMAND]

Expand Down Expand Up @@ -1058,6 +1055,9 @@ ARGUMENTS
DESCRIPTION
Initialize a project directory by generating a .fauna-project file.

NOTE: `fauna project` and `fauna stack` are still in beta. Behavior is subject
to change.

EXAMPLES
$ fauna project init

Expand Down Expand Up @@ -1250,6 +1250,9 @@ FLAGS
DESCRIPTION
Add a new stack to `.fauna-project`.

NOTE: `fauna project` and `fauna stack` are still in beta. Behavior is subject
to change.

EXAMPLES
$ fauna stack add

Expand All @@ -1271,6 +1274,9 @@ USAGE
DESCRIPTION
List stacks available in `.fauna-project`.

NOTE: `fauna project` and `fauna stack` are still in beta. Behavior is subject
to change.

EXAMPLES
$ fauna stack list
```
Expand All @@ -1291,6 +1297,9 @@ ARGUMENTS
DESCRIPTION
Update the default stack in `.fauna-project`.

NOTE: `fauna project` and `fauna stack` are still in beta. Behavior is subject
to change.

EXAMPLES
$ fauna stack select my-stack
```
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@
"description": "Manage endpoints in ~/.fauna-shell."
},
"project": {
"description": "Manage project settings in .fauna-project."
"description": "Manage project settings in .fauna-project.\nNOTE: `fauna project` and `fauna stack` are still in beta. Behavior is subject to change."
},
"stack": {
"description": "Manage stacks in the current project."
"description": "Manage stacks in the current project.\nNOTE: `fauna project` and `fauna stack` are still in beta. Behavior is subject to change."
}
}
},
Expand Down
9 changes: 8 additions & 1 deletion readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,14 @@ def run(command: list[str]) -> str:

if end != None:
print(f"updated command {command}")
result = run(["./bin/run", *command[1:], "--help"]).strip().split("\n")
result = run(["./bin/run", *command[1:], "--help"]).strip()

# remove the VERSION section
if command == ["fauna", "help"]:
m = re.search("VERSION.*\n.*\n\n", result)
result = result[:m.start()] + result[m.end():]

result = result.split("\n")
lines[start:end] = result
i += len(result) - (end - start)

Expand Down
5 changes: 3 additions & 2 deletions src/commands/project/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ export class ProjectInitCommand extends Command {
}),
};

static description =
"Initialize a project directory by generating a .fauna-project file.";
static description = `Initialize a project directory by generating a .fauna-project file.

NOTE: \`fauna project\` and \`fauna stack\` are still in beta. Behavior is subject to change.`;

static examples = [
"$ fauna project init",
Expand Down
4 changes: 3 additions & 1 deletion src/commands/stack/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export default class AddStackCommand extends Command {
}),
};

static description = "Add a new stack to `.fauna-project`.";
static description = `Add a new stack to \`.fauna-project\`.

NOTE: \`fauna project\` and \`fauna stack\` are still in beta. Behavior is subject to change.`;

static examples = [
"$ fauna stack add",
Expand Down
4 changes: 3 additions & 1 deletion src/commands/stack/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import chalk from "chalk";
export default class ListStackCommand extends Command {
static flags = {};

static description = "List stacks available in `.fauna-project`.";
static description = `List stacks available in \`.fauna-project\`.

NOTE: \`fauna project\` and \`fauna stack\` are still in beta. Behavior is subject to change.`;

static examples = ["$ fauna stack list"];

Expand Down
4 changes: 3 additions & 1 deletion src/commands/stack/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ export default class SelectStackCommand extends Command {
}),
};

static description = "Update the default stack in `.fauna-project`.";
static description = `Update the default stack in \`.fauna-project\`.

NOTE: \`fauna project\` and \`fauna stack\` are still in beta. Behavior is subject to change.`;

static examples = ["$ fauna stack select my-stack"];

Expand Down