Merging upstream version 0.8.13.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
4ccf9dc8f1
commit
bc0f764250
28 changed files with 556 additions and 76 deletions
|
@ -75,7 +75,9 @@ func printDocs(docFormat string, services []string) cmd.Result {
|
|||
// Initialize the service to populate Config
|
||||
dummyURL, _ := url.Parse(scheme + "://dummy@dummy.com")
|
||||
if err := service.Initialize(dummyURL, logger); err != nil {
|
||||
return cmd.InvalidUsage(fmt.Sprintf("failed to initialize service %q: %v", scheme, err))
|
||||
return cmd.InvalidUsage(
|
||||
fmt.Sprintf("failed to initialize service %q: %v\n", scheme, err),
|
||||
)
|
||||
}
|
||||
|
||||
config := format.GetServiceConfig(service)
|
||||
|
|
|
@ -15,9 +15,8 @@ import (
|
|||
)
|
||||
|
||||
var cobraCmd = &cobra.Command{
|
||||
Use: "shoutrrr",
|
||||
Version: meta.Version,
|
||||
Short: "Shoutrrr CLI",
|
||||
Use: "shoutrrr",
|
||||
Short: "Shoutrrr CLI",
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
@ -26,6 +25,8 @@ func init() {
|
|||
cobraCmd.AddCommand(generate.Cmd)
|
||||
cobraCmd.AddCommand(send.Cmd)
|
||||
cobraCmd.AddCommand(docs.Cmd)
|
||||
|
||||
cobraCmd.Version = meta.GetMetaStr()
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue