Adding upstream version 0.8.9.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
3b2c48b5e4
commit
c0c4addb85
285 changed files with 25880 additions and 0 deletions
35
shoutrrr/main.go
Normal file
35
shoutrrr/main.go
Normal file
|
@ -0,0 +1,35 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"github.com/nicholas-fedor/shoutrrr/internal/meta"
|
||||
"github.com/nicholas-fedor/shoutrrr/shoutrrr/cmd"
|
||||
"github.com/nicholas-fedor/shoutrrr/shoutrrr/cmd/docs"
|
||||
"github.com/nicholas-fedor/shoutrrr/shoutrrr/cmd/generate"
|
||||
"github.com/nicholas-fedor/shoutrrr/shoutrrr/cmd/send"
|
||||
"github.com/nicholas-fedor/shoutrrr/shoutrrr/cmd/verify"
|
||||
)
|
||||
|
||||
var cobraCmd = &cobra.Command{
|
||||
Use: "shoutrrr",
|
||||
Version: meta.Version,
|
||||
Short: "Shoutrrr CLI",
|
||||
}
|
||||
|
||||
func init() {
|
||||
viper.AutomaticEnv()
|
||||
cobraCmd.AddCommand(verify.Cmd)
|
||||
cobraCmd.AddCommand(generate.Cmd)
|
||||
cobraCmd.AddCommand(send.Cmd)
|
||||
cobraCmd.AddCommand(docs.Cmd)
|
||||
}
|
||||
|
||||
func main() {
|
||||
if err := cobraCmd.Execute(); err != nil {
|
||||
os.Exit(cmd.ExUsage)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue