Skip to content

Commit

Permalink
Add docs for paas commands
Browse files Browse the repository at this point in the history
  • Loading branch information
rolljee committed Nov 13, 2023
1 parent 4c13d71 commit de001a2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/commands/paas/snapshots/cat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ class PaasSnapshotsCat extends PaasKommand {
}
];

static examples = ["kourou paas:snapshots:cat --project paas-project-myproject api main"];

async runSafe() {
const apiKey = await this.getCredentials();

Expand Down
4 changes: 3 additions & 1 deletion src/commands/paas/snapshots/dump.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { PaasKommand } from "../../../support/PaasKommand";

class PaasSnapshotsDump extends PaasKommand {
public static description =
"List all snapshots for a given kuzzle application in a environment";
"Create a new snapshot of the current application state";

public static flags = {
help: flags.help(),
Expand All @@ -30,6 +30,8 @@ class PaasSnapshotsDump extends PaasKommand {
}
];

static examples = ["kourou paas:snapshots:dump --project paas-project-myproject api main"];

async runSafe() {
const apiKey = await this.getCredentials();

Expand Down
4 changes: 3 additions & 1 deletion src/commands/paas/snapshots/restore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { PaasKommand } from "../../../support/PaasKommand";

class PaasSnapshotsRestore extends PaasKommand {
public static description =
"List all snapshots for a given kuzzle application in a environment";
"Restore a snapshot of the current application state";

public static flags = {
help: flags.help(),
Expand Down Expand Up @@ -35,6 +35,8 @@ class PaasSnapshotsRestore extends PaasKommand {
}
];

static examples = ["kourou paas:snapshots:restore --project paas-project-myproject api main snapshot-id"];

async runSafe() {
const apiKey = await this.getCredentials();

Expand Down

0 comments on commit de001a2

Please sign in to comment.