Add skip daemon flag and send recently authed tokens to daemon (#3883)
* Add skip daemon flag and send recently authed tokens to daemon * Rename flag skip-daemon to skip-cache-daemon * adding option test * move common.Options to base.Option * SocketAddress returns *url.URL, fix search test
This commit is contained in:
1 parent
2f7459fa40
commit
3a7ea64a31
27 files changed
+429
-419
No files matched your search
@@ -11,7 +11,7 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
commandFactoryWrapper = daemonWrap
|
||||
clientCacheWrapper = daemonWrap
|
||||
|
||||
extraCommandsFuncs = append(extraCommandsFuncs, func(ui, serverCmdUi cli.Ui, runOpts *RunOptions) {
|
||||
delete(Commands, "daemon")
|
||||
@@ -38,8 +38,8 @@ func init() {
|
||||
})
|
||||
}
|
||||
|
||||
// daemonWrap wraps the provided wrappableCommand with a daemon writer which
|
||||
// daemonWrap wraps the provided cacheEnabledCommand with a daemon writer which
|
||||
// conditionally starts the client side daemon after the command completes
|
||||
func daemonWrap(ui cli.Ui, c wrappableCommand) cli.CommandFactory {
|
||||
return daemon.Wrap(ui, c)
|
||||
func daemonWrap(c cacheEnabledCommand) cli.CommandFactory {
|
||||
return daemon.Wrap(c)
|
||||
}
|
||||
Reference in new issue
Block a user