Skip to content

Commit 883e4ce

Browse files
committed
chore: update paths
1 parent c727027 commit 883e4ce

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.cursor/rules/command-bootstrap.mdc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ description: Bootstraps a new CLI command
33
globs:
44
alwaysApply: false
55
---
6+
67
Always prompt for a name if one is not given to you. The name must be lowercased, and use dashes for separators, NOT spaces, NOT underscores.
78

89
Our base class for a command is in [apify-command.ts](mdc:src/lib/command-framework/apify-command.ts), import the `ApifyCommand` class, NOT the `BuiltApifyCommand` class
@@ -13,14 +14,14 @@ Example class for a command called `wow`:
1314

1415
```ts
1516
export class WowCommand extends ApifyCommand<typeof WowCommand> {
16-
static override name = 'wow' as const;
17+
static override name = "wow" as const;
1718

1819
async run() {
1920
// Command logic here
2021
}
2122
}
2223
```
2324

24-
Look at [validate-schema.ts](mdc:src/commands/validate-schema.ts), [upgrade.ts](mdc:src/commands/upgrade.ts) for how to define other properties in a command. Always mark the properties as `static override`.
25+
Look at [validate-schema.ts](mdc:src/commands/validate-schema.ts), [upgrade.ts](mdc:src/commands/cli-management/upgrade.ts) for how to define other properties in a command. Always mark the properties as `static override`.
2526

26-
Once a command is created, always add it to the end of the `apifyCommands` variable in [_register.ts](mdc:src/commands/_register.ts). If the user requests an `actor` command instead, update the `actorCommands` variable instead. If unsure, prompt the user for the type.
27+
Once a command is created, always add it to the end of the `apifyCommands` variable in [\_register.ts](mdc:src/commands/_register.ts). If the user requests an `actor` command instead, update the `actorCommands` variable instead. If unsure, prompt the user for the type.

0 commit comments

Comments
 (0)