Skip to content

Commit

Permalink
Final fixes and bump to v0.1.2 ig
Browse files Browse the repository at this point in the history
  • Loading branch information
ajhalili2006 committed Jan 28, 2025
1 parent 571dcae commit 06178a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@recaptime-dev/golinkctl",
"version": "0.1.1",
"version": "0.1.2",
"exports": "./golinkctl.ts",
"license": "MPL-2.0",
"imports": {
Expand Down
6 changes: 3 additions & 3 deletions golinkctl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ const command = await new Command()
.env(
"URL=<url:string>",
"base URL of the golink server, used if you manage another tailnet's golink server using shared machines or building your own over the internet",
{ global: true, required: false, prefix: "GOLINK_", value: "http://go" }
{ global: true, required: false, prefix: "GOLINK_", value: () => "http://go" }
)
.env(
"API_KEY=<apiKey:string>",
"Golink API key, used by custom implementations of golink server (see https://github.com/andreijiroh-dev/golinks for context)",
{ global: true, required: false, prefix: "GOLINK_", value: "" }
{ global: true, required: false, prefix: "GOLINK_", value: () => "" }
)
.description("manage your golinks for https://github.com/tailscale-dev/golink compat API servers")
.globalOption("-u, --url [url:string]", "the base URL of your golink server", {
Expand All @@ -64,7 +64,7 @@ command.command("set", "create a new golink (or update a existing one)")
.alias("new").alias("update")
.arguments("<target:string [golink:string]")
// @ts-ignore: I know the risks of being not typed here
.action(async(options, ...args) => {
.action(async(options, ...args: Array<string>) => {
const long = args[0]
const short = args[1] || generateSlug(8)

Expand Down

0 comments on commit 06178a9

Please # to comment.