Skip to content

Commit

Permalink
fix(autocomplete): bad alias (#1118)
Browse files Browse the repository at this point in the history
## 🧰 Changes

autocompletions were broken, seemingly due to the `guides prune` alias:

![CleanShot 2024-12-10 at 16 22
42@2x](https://github.com/user-attachments/assets/5ecc8b35-895c-4150-9553-821e3e7ba7cf)

thankfully the fix is harmless and shouldn't result in any actual end
user changes.
  • Loading branch information
kanadgupta authored Dec 10, 2024
1 parent 5dfcf6b commit 5b8d928
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/docs/prune.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export default class DocsPruneCommand extends BaseCommand<typeof DocsPruneComman
message: `\`rdme ${this.id}\` is deprecated and will be removed in v10. For more information, please visit our migration guide: https://github.com/readmeio/rdme/tree/v9/documentation/migration-guide.md`,
};

static aliases = ['guides prune'];
// this needs to be separated by a colon in order for autocomplete to work properly
static aliases = ['guides:prune'];

static description = 'Delete any docs from ReadMe if their slugs are not found in the target folder.';

Expand Down

0 comments on commit 5b8d928

Please sign in to comment.