Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ConfigDir は ~/.config/mushi を指します ConfigDir string // CacheDir は ~/.cache/mushi/github-gitignore を指します CacheDir string // CommonIgnorePath は共通無視ファイルのパスです CommonIgnorePath string // Version は mushi のバージョンです Version string = "v0.4.2" )
View Source
var RootCmd = &cobra.Command{ Use: "mushi", Short: "mushi is a gitignore template generator", Version: Version, }
Functions ¶
func DefaultContent ¶ added in v0.3.0
func DefaultContent() []byte
func EnsureCache ¶ added in v0.3.0
EnsureCache ensures the cache directory exists and updates it if needed skipUpdateがtrueの場合は更新をスキップ
func EnsureCommonIgnore ¶ added in v0.3.0
EnsureCommonIgnore ensures common.gitignore exists, creates it if not
Types ¶
Click to show internal directories.
Click to hide internal directories.