cache

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Copyright © 2024 Taufik Hidayat <tfkhdyt@proton.me>

Copyright © 2024 Taufik Hidayat <tfkhdyt@proton.me>

Index

Constants

This section is empty.

Variables

View Source
var CacheClearCmd = &cobra.Command{
	Use:   "clear",
	Short: "Clear unused cache",
	Long:  `Clear unused cache`,
	Run: func(cmd *cobra.Command, args []string) {
		err := usecase.ClearCache(clearAllCache, force)
		cobra.CheckErr(err)
	},
}

cacheClearCmd represents the cacheClear command

View Source
var CachePathCmd = &cobra.Command{
	Use:   "path",
	Short: "Print cache path",
	Long:  `Print cache path`,
	Run: func(cmd *cobra.Command, args []string) {
		myCacheDir, err := usecase.GetCachePath()
		cobra.CheckErr(err)

		fmt.Println(myCacheDir)
	},
}

cachePathCmd represents the cachePath command

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL