Skip to content

Commit

Permalink
feat(deno): update generators (withfig#1491)
Browse files Browse the repository at this point in the history
Co-authored-by: Robert <52195359+SeparateRecords@users.noreply.github.com>

Unsure whether the copy/paste generator works but worst case, we it fails and throws a silent error
  • Loading branch information
clo4 authored Oct 27, 2023
1 parent 15ad671 commit 6ac1125
Show file tree
Hide file tree
Showing 2 changed files with 377 additions and 25 deletions.
9 changes: 5 additions & 4 deletions src/deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
generateLintRules,
generateTasks,
generateVersions,
generateUrlScript,
} from "./deno/generators";

const completion: Fig.Spec = {
Expand Down Expand Up @@ -899,8 +900,8 @@ const completion: Fig.Spec = {
args: {
name: "script_arg",
isVariadic: true,
template: "filepaths",
isScript: true,
generators: [{ template: "filepaths" }, generateUrlScript],
},
parserDirectives: {
optionsMustPrecedeArguments: true,
Expand Down Expand Up @@ -1076,7 +1077,7 @@ const completion: Fig.Spec = {
{
name: "source_file",
isOptional: true,
template: "filepaths",
generators: [{ template: "filepaths" }, generateUrlScript],
suggestions: [
{
name: "--builtin",
Expand Down Expand Up @@ -1821,8 +1822,8 @@ const completion: Fig.Spec = {
args: {
name: "cmd",
isVariadic: true,
template: "filepaths",
isScript: true,
generators: [{ template: "filepaths" }, generateUrlScript],
},
parserDirectives: {
optionsMustPrecedeArguments: true,
Expand Down Expand Up @@ -2490,7 +2491,6 @@ const completion: Fig.Spec = {
args: {
name: "script_arg",
isVariadic: true,
template: "filepaths",
isScript: true,
suggestions: [
{
Expand All @@ -2499,6 +2499,7 @@ const completion: Fig.Spec = {
hidden: true,
},
],
generators: [{ template: "filepaths" }, generateUrlScript],
},
parserDirectives: {
optionsMustPrecedeArguments: true,
Expand Down
Loading

0 comments on commit 6ac1125

Please sign in to comment.