From 5621b4733c5531839a93776effeeb0f37d3f302a Mon Sep 17 00:00:00 2001 From: trivernis Date: Sat, 17 Jun 2023 12:15:17 +0200 Subject: [PATCH] Use alias to define cntfy script publish cmd --- cntfy | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/cntfy b/cntfy index 15f326b..32d931f 100755 --- a/cntfy +++ b/cntfy @@ -32,15 +32,4 @@ def subcommands [] { ["publish"] } -# Publishes a message with certain properties -def `main publish` [ - topic: string - message: string - --title: string - --priority: number - --tags: list - --actions: list - --icon: string -] { - cntfy publish $topic $message --title $title --priority $priority --tags $tags --actions $actions --icon $icon -} +alias `main publish` = cntfy publish \ No newline at end of file