Use cobra (#234)

switch to cobra

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero
2022-07-19 21:06:18 +09:00
committed by GitHub
parent 35453566df
commit 85ade797ab
44 changed files with 2144 additions and 831 deletions
+28
View File
@@ -0,0 +1,28 @@
package config
// CacheOptions is the options for the build command
type CacheOptions struct{}
// NewCacheOptions creates a new Apply
func NewCacheOptions() *CacheOptions {
return &CacheOptions{}
}
// CacheImpl is impl for applyOptions
type CacheImpl struct {
*GlobalImpl
*CacheOptions
}
// NewCacheImpl creates a new CacheImpl
func NewCacheImpl(g *GlobalImpl, b *CacheOptions) *CacheImpl {
return &CacheImpl{
GlobalImpl: g,
CacheOptions: b,
}
}
// Args returns the args.
func (b *CacheImpl) Args() string {
return ""
}