Skip to content

Commit ac28eaa

Browse files
committed
simplify manifest API
1 parent 8734b2f commit ac28eaa

File tree

25 files changed

+70
-136
lines changed

25 files changed

+70
-136
lines changed

extensions/bitwarden.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if [ $# -eq 0 ]; then
77
preferences: [
88
{
99
name: "session",
10-
description: "Bitwarden Session",
10+
title: "Bitwarden Session",
1111
type: "string"
1212
}
1313
],

extensions/brew.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if [ $# -eq 0 ]; then
1616
params: [
1717
{
1818
name: "package",
19-
description: "Package Name",
19+
title: "Package Name",
2020
type: "string"
2121
}
2222
]

extensions/deno-deploy.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const manifest = {
99
preferences: [
1010
{
1111
name: "token",
12-
description: "Access Token",
12+
title: "Access Token",
1313
type: "string",
1414
},
1515
],
@@ -29,14 +29,14 @@ const manifest = {
2929
title: "List Deployments",
3030
hidden: true,
3131
mode: "filter",
32-
params: [{ name: "project", description: "Project", type: "string" }],
32+
params: [{ name: "project", title: "Project", type: "string" }],
3333
},
3434
{
3535
name: "playground",
3636
title: "View Playground",
3737
hidden: true,
3838
mode: "detail",
39-
params: [{ name: "project", description: "Project", type: "string" }],
39+
params: [{ name: "project", title: "Project", type: "string" }],
4040
},
4141
],
4242
} as const satisfies sunbeam.Manifest;

extensions/devdocs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if [ $# -eq 0 ]; then
1818
title: "List Entries from Docset",
1919
mode: "filter",
2020
params: [
21-
{ name: "slug", description: "Slug", type: "string" }
21+
{ name: "slug", title: "Slug", type: "string" }
2222
]
2323
}
2424
]

extensions/files.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"preferences": [
1111
{
1212
"name": "show-hidden",
13-
"description": "Show Hidden Files",
13+
"title": "Show Hidden Files",
1414
"type": "boolean",
1515
"optional": True,
1616
}
@@ -23,7 +23,7 @@
2323
"params": [
2424
{
2525
"name": "dir",
26-
"description": "Directory",
26+
"title": "Directory",
2727
"type": "string",
2828
"optional": True,
2929
},

extensions/gists.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const manifest = {
1010
preferences: [
1111
{
1212
name: "token",
13-
description: "GitHub Personal Access Token",
13+
title: "GitHub Personal Access Token",
1414
type: "string",
1515
},
1616
],
@@ -27,18 +27,18 @@ const manifest = {
2727
params: [
2828
{
2929
name: "filename",
30-
description: "Gist Filename",
30+
title: "Gist Filename",
3131
type: "string",
3232
},
3333
{
3434
name: "description",
35-
description: "Gist Description",
35+
title: "Gist Description",
3636
optional: true,
3737
type: "string",
3838
},
3939
{
4040
name: "public",
41-
description: "Public",
41+
title: "Public",
4242
type: "boolean",
4343
},
4444
],
@@ -48,16 +48,16 @@ const manifest = {
4848
title: "Browse Gist Files",
4949
hidden: true,
5050
mode: "filter",
51-
params: [{ name: "id", description: "Gist ID", type: "string" }],
51+
params: [{ name: "id", title: "Gist ID", type: "string" }],
5252
},
5353
{
5454
name: "view",
5555
title: "View Gist File",
5656
hidden: true,
5757
mode: "detail",
5858
params: [
59-
{ name: "id", description: "Gist ID", type: "string" },
60-
{ name: "filename", description: "Filename", type: "string" },
59+
{ name: "id", title: "Gist ID", type: "string" },
60+
{ name: "filename", title: "Filename", type: "string" },
6161
],
6262
},
6363
{
@@ -66,16 +66,16 @@ const manifest = {
6666
hidden: true,
6767
mode: "tty",
6868
params: [
69-
{ name: "id", description: "Gist ID", type: "string" },
70-
{ name: "filename", description: "Filename", type: "string" },
69+
{ name: "id", title: "Gist ID", type: "string" },
70+
{ name: "filename", title: "Filename", type: "string" },
7171
],
7272
},
7373
{
7474
name: "delete",
7575
hidden: true,
7676
title: "Delete Gist",
7777
mode: "silent",
78-
params: [{ name: "id", description: "Gist ID", type: "string" }],
78+
params: [{ name: "id", title: "Gist ID", type: "string" }],
7979
},
8080
],
8181
} as const satisfies sunbeam.Manifest;

extensions/github.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const manifest = {
99
preferences: [
1010
{
1111
name: "token",
12-
description: "Personal Access Token",
12+
title: "Personal Access Token",
1313
type: "string",
1414
},
1515
],
@@ -27,7 +27,7 @@ const manifest = {
2727
params: [
2828
{
2929
name: "repo",
30-
description: "Repository Name",
30+
title: "Repository Name",
3131
type: "string",
3232
},
3333
],
@@ -40,7 +40,7 @@ const manifest = {
4040
params: [
4141
{
4242
name: "repo",
43-
description: "Repository Name",
43+
title: "Repository Name",
4444
type: "string",
4545
},
4646
],
@@ -53,7 +53,7 @@ const manifest = {
5353
params: [
5454
{
5555
name: "repo",
56-
description: "Repository Name",
56+
title: "Repository Name",
5757
type: "string",
5858
},
5959
],

extensions/hackernews.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const manifest = {
1212
name: "browse",
1313
title: "Show a feed",
1414
mode: "filter",
15-
params: [{ name: "topic", description: "Topic", type: "string" }],
15+
params: [{ name: "topic", title: "Topic", type: "string" }],
1616
},
1717
],
1818
} as const satisfies sunbeam.Manifest;

extensions/nixpkgs.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import * as sunbeam from "https://deno.land/x/sunbeam/mod.ts";
44

55
const manifest = {
66
title: "Nixpkgs Search",
7+
description: "Search Nixpkgs packages",
78
commands: [
89
{
910
name: "search",

extensions/npm.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import * as sunbeam from "https://deno.land/x/sunbeam/mod.ts";
33

44
const manifest: sunbeam.Manifest = {
55
title: "NPM Search",
6+
description: "Search NPM packages",
67
commands: [
78
{
89
name: "search",

0 commit comments

Comments
 (0)