File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -82,13 +82,13 @@ func Cname(ctx context.Context) *cli.Command {
82
82
Name : "interval" ,
83
83
Value : 300 ,
84
84
EnvVars : []string {"INTERVAL" },
85
- Usage : "Interval of publishing CNAME records in seconds. How often to send records to other machines." ,
85
+ Usage : "interval of publishing CNAME records in seconds. How often to send records to other machines." ,
86
86
},
87
87
& cli.StringFlag {
88
88
Name : "fqdn" ,
89
89
EnvVars : []string {"FQDN" },
90
- Usage : "Where to redirect. If empty, the Avahi FQDN (current machine) will be used" ,
91
- DefaultText : "hostname.local." ,
90
+ Usage : "where to redirect. If empty, the Avahi FQDN (current machine) will be used" ,
91
+ DefaultText : "< hostname> .local." ,
92
92
},
93
93
},
94
94
Action : func (cCtx * cli.Context ) error {
Original file line number Diff line number Diff line change @@ -152,8 +152,8 @@ func Subdomain(ctx context.Context) *cli.Command {
152
152
& cli.StringFlag {
153
153
Name : "fqdn" ,
154
154
EnvVars : []string {"FQDN" },
155
- Usage : "FQDN which will be used for CNAME. If empty, will be used current FQDN" ,
156
- DefaultText : "hostname.local." ,
155
+ Usage : "FQDN which will be used for CNAME. If empty, will be used current FQDN from Avahi " ,
156
+ DefaultText : "< hostname> .local." ,
157
157
},
158
158
},
159
159
Action : func (cCtx * cli.Context ) error {
Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ func main() {
40
40
fmt .Printf (" > %+v\n " , err )
41
41
os .Exit (1 )
42
42
}
43
+
44
+ // To avoid graceful shutdown timeout
45
+ os .Exit (0 )
43
46
}
44
47
45
48
// run starts and configures the CLI application
@@ -70,7 +73,7 @@ Need help? Visit https://github.com/grishy/go-avahi-cname`,
70
73
& cli.BoolFlag {
71
74
Name : "debug" ,
72
75
Aliases : []string {"d" },
73
- Usage : "Enable debug logging" ,
76
+ Usage : "enable debug logging" ,
74
77
EnvVars : []string {"DEBUG" },
75
78
Value : false ,
76
79
},
You can’t perform that action at this time.
0 commit comments