mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-12-28 20:52:30 +01:00
29 lines
667 B
Go
29 lines
667 B
Go
// Package cmd provides the ntfy CLI application
|
|
package cmd
|
|
|
|
import (
|
|
"github.com/urfave/cli/v2"
|
|
"os"
|
|
)
|
|
|
|
const (
|
|
categoryClient = "Client commands"
|
|
categoryServer = "Server commands"
|
|
)
|
|
|
|
var commands = make([]*cli.Command, 0)
|
|
|
|
// New creates a new CLI application
|
|
func New() *cli.App {
|
|
return &cli.App{
|
|
Name: "ntfy",
|
|
Usage: "Simple pub-sub notification service",
|
|
UsageText: "ntfy [OPTION..]",
|
|
HideVersion: true,
|
|
UseShortOptionHandling: true,
|
|
Reader: os.Stdin,
|
|
Writer: os.Stdout,
|
|
ErrWriter: os.Stderr,
|
|
Commands: commands,
|
|
}
|
|
}
|