mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-15 07:35:49 -06:00
Fix build
This commit is contained in:
parent
743b00e59c
commit
279c164bf5
2 changed files with 9 additions and 7 deletions
11
cmd/app.go
11
cmd/app.go
|
|
@ -3,11 +3,12 @@ package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
|
"regexp"
|
||||||
|
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
"github.com/urfave/cli/v2/altsrc"
|
"github.com/urfave/cli/v2/altsrc"
|
||||||
"heckel.io/ntfy/v2/log"
|
"heckel.io/ntfy/v2/log"
|
||||||
"os"
|
|
||||||
"regexp"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
@ -15,6 +16,12 @@ const (
|
||||||
categoryServer = "Server commands"
|
categoryServer = "Server commands"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Build metadata keys for app.Metadata
|
||||||
|
const (
|
||||||
|
MetadataKeyCommit = "commit"
|
||||||
|
MetadataKeyDate = "date"
|
||||||
|
)
|
||||||
|
|
||||||
var commands = make([]*cli.Command, 0)
|
var commands = make([]*cli.Command, 0)
|
||||||
|
|
||||||
var flagsDefault = []cli.Flag{
|
var flagsDefault = []cli.Flag{
|
||||||
|
|
|
||||||
|
|
@ -128,11 +128,6 @@ Examples:
|
||||||
ntfy serve --listen-http :8080 # Starts server with alternate port`,
|
ntfy serve --listen-http :8080 # Starts server with alternate port`,
|
||||||
}
|
}
|
||||||
|
|
||||||
// App metadata fields used to pass from
|
|
||||||
const (
|
|
||||||
MetadataKeyCommit = "commit"
|
|
||||||
MetadataKeyDate = "date"
|
|
||||||
)
|
|
||||||
|
|
||||||
func execServe(c *cli.Context) error {
|
func execServe(c *cli.Context) error {
|
||||||
if c.NArg() > 0 {
|
if c.NArg() > 0 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue