mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-17 23:16:34 +02:00
Use cobra (#234)
switch to cobra Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
+2
-2
@@ -2059,7 +2059,7 @@ func (c context) wrapErrs(errs ...error) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (a *App) ShowCacheDir(c ListConfigProvider) error {
|
||||
func (a *App) ShowCacheDir(c CacheConfigProvider) error {
|
||||
fmt.Printf("Cache directory: %s\n", remote.CacheDir())
|
||||
|
||||
if !directoryExistsAt(remote.CacheDir()) {
|
||||
@@ -2076,7 +2076,7 @@ func (a *App) ShowCacheDir(c ListConfigProvider) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (a *App) CleanCacheDir(c ListConfigProvider) error {
|
||||
func (a *App) CleanCacheDir(c CacheConfigProvider) error {
|
||||
if !directoryExistsAt(remote.CacheDir()) {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -232,3 +232,5 @@ type interactive interface {
|
||||
type ListConfigProvider interface {
|
||||
Output() string
|
||||
}
|
||||
|
||||
type CacheConfigProvider interface{}
|
||||
|
||||
Reference in New Issue
Block a user