Fix build
This commit is contained in:
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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user