-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
241 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
#!/usr/bin/env deno run -A | ||
|
||
import { Octokit } from "https://esm.sh/[email protected]?dts"; | ||
import * as sunbeam from "npm:[email protected].18" | ||
import * as sunbeam from "npm:[email protected].19" | ||
|
||
if (Deno.args.length === 0) { | ||
const manifest: sunbeam.Manifest = { | ||
title: "Gist", | ||
description: "Manage your gists", | ||
requirements: [ | ||
{ | ||
name: "deno", | ||
link: "https://deno.com" | ||
} | ||
], | ||
commands: [ | ||
{ | ||
name: "list", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
#!/usr/bin/env deno run -A | ||
|
||
import type * as sunbeam from "npm:[email protected].18"; | ||
import type * as sunbeam from "npm:[email protected].19"; | ||
import * as base64 from "https://deno.land/[email protected]/encoding/base64.ts"; | ||
|
||
if (Deno.args.length == 0) { | ||
const manifest: sunbeam.Manifest = { | ||
title: "GitHub", | ||
description: "Search GitHub repositories", | ||
requirements: [ | ||
{ | ||
name: "deno", | ||
link: "https://deno.com" | ||
} | ||
], | ||
commands: [ | ||
{ | ||
title: "Search Repositories", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,18 @@ | |
|
||
import Parser from "npm:rss-parser"; | ||
import { formatDistance } from "npm:date-fns"; | ||
import * as sunbeam from "npm:[email protected].15" | ||
import * as sunbeam from "npm:[email protected].19" | ||
|
||
if (Deno.args.length == 0) { | ||
const manifest: sunbeam.Manifest = { | ||
title: "Hacker News", | ||
description: "Browse Hacker News", | ||
requirements: [ | ||
{ | ||
name: "deno", | ||
link: "https://deno.com" | ||
} | ||
], | ||
root: [ | ||
{ | ||
title: "Front Page", | ||
|
@@ -40,7 +46,7 @@ if (Deno.args.length == 0) { | |
Deno.exit(0); | ||
} | ||
|
||
const payload = JSON.parse(Deno.args[0]) as sunbeam.CommandInput; | ||
const payload = JSON.parse(Deno.args[0]) as sunbeam.Payload; | ||
if (payload.command == "browse") { | ||
const { topic } = payload.params as { topic: string }; | ||
const feed = await new Parser().parseURL(`https://hnrss.org/${topic}?description=0&count=25`); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
#!/usr/bin/env deno run -A | ||
import * as sunbeam from "npm:[email protected].16" | ||
import * as sunbeam from "npm:[email protected].19" | ||
import * as clipboard from "https://deno.land/x/[email protected]/mod.ts"; | ||
|
||
|
||
if (Deno.args.length == 0) { | ||
const manifest: sunbeam.Manifest = { | ||
title: "Pipe Commands", | ||
description: "Pipe your clipboard through various commands", | ||
requirements: [ | ||
{ | ||
name: "deno", | ||
link: "https://deno.com" | ||
} | ||
], | ||
commands: [ | ||
{ | ||
name: "urldecode", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
#!/usr/bin/env -S deno run -A | ||
import * as sunbeam from "npm:[email protected].15" | ||
import * as sunbeam from "npm:[email protected].19" | ||
|
||
if (Deno.args.length === 0) { | ||
const manifest: sunbeam.Manifest = { | ||
title: "Raindrop", | ||
description: "Manage your raindrop bookmarks", | ||
requirements: [ | ||
{ | ||
name: "deno", | ||
link: "https://deno.com" | ||
} | ||
], | ||
commands: [ | ||
{ | ||
title: "Search Bookmarks", | ||
|
@@ -22,7 +28,7 @@ if (!raindropToken) { | |
throw new Error("RAINDROP_TOKEN is not set"); | ||
} | ||
|
||
const payload = JSON.parse(Deno.args[0]) as sunbeam.CommandInput; | ||
const payload = JSON.parse(Deno.args[0]) as sunbeam.Payload; | ||
if (payload.command == "search-bookmarks") { | ||
const resp = await fetch("https://api.raindrop.io/rest/v1/raindrops/0", { | ||
headers: { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,18 @@ | |
|
||
import Parser from "npm:rss-parser"; | ||
import { formatDistance } from "npm:date-fns"; | ||
import * as sunbeam from "npm:[email protected].15" | ||
import * as sunbeam from "npm:[email protected].19" | ||
|
||
if (Deno.args.length == 0) { | ||
const manifest: sunbeam.Manifest = { | ||
title: "RSS", | ||
description: "Manage your RSS feeds", | ||
requirements: [ | ||
{ | ||
name: "deno", | ||
link: "https://deno.com" | ||
} | ||
], | ||
commands: [ | ||
{ | ||
name: "show", | ||
|
@@ -29,7 +35,7 @@ if (Deno.args.length == 0) { | |
Deno.exit(0); | ||
} | ||
|
||
const payload = JSON.parse(Deno.args[0]) as sunbeam.CommandInput; | ||
const payload = JSON.parse(Deno.args[0]) as sunbeam.Payload; | ||
if (payload.command == "show") { | ||
const params = payload.params as { url: string }; | ||
const feed = await new Parser().parseURL(params.url); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
#!/usr/bin/env -S deno run -A | ||
import type * as sunbeam from "npm:[email protected].15"; | ||
import type * as sunbeam from "npm:[email protected].19"; | ||
|
||
if (Deno.args.length == 0) { | ||
const manifest: sunbeam.Manifest = { | ||
title: "Tailscale", | ||
description: "Manage your tailscale devices", | ||
requirements: [ | ||
{ | ||
name: "deno", | ||
link: "https://deno.com" | ||
}, | ||
{ | ||
name: "tailscale", | ||
link: "https://tailscale.com" | ||
} | ||
], | ||
commands: [ | ||
{ | ||
name: "list-devices", | ||
|
@@ -38,7 +48,7 @@ type Device = { | |
Online: boolean; | ||
} | ||
|
||
const payload = JSON.parse(Deno.args[0]) as sunbeam.CommandInput; | ||
const payload = JSON.parse(Deno.args[0]) as sunbeam.Payload; | ||
|
||
if (payload.command == "list-devices") { | ||
const command = new Deno.Command("tailscale", { args: ["status", "--json"] }); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.