feat: add invokable option to markdown rule creation (#7824)
* feat: add invokable option to markdown rule creation * Apply suggestion from @cubic-dev-ai[bot] Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --------- Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
parent
6034217ea1
commit
2f86fc5efe
1 changed files with 5 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ export function createRuleMarkdown(
|
|||
globs?: string | string[];
|
||||
regex?: string | string[];
|
||||
alwaysApply?: boolean;
|
||||
invokable?: boolean;
|
||||
} = {},
|
||||
): string {
|
||||
const frontmatter: RuleFrontmatter = {};
|
||||
|
|
@ -54,6 +55,10 @@ export function createRuleMarkdown(
|
|||
frontmatter.description = options.description.trim();
|
||||
}
|
||||
|
||||
if (options.invokable !== undefined) {
|
||||
frontmatter.invokable = options.invokable;
|
||||
}
|
||||
|
||||
if (options.alwaysApply !== undefined) {
|
||||
frontmatter.alwaysApply = options.alwaysApply;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue