Files
iris-context/commands/sys/dscacheutil.go
VERSE ebde9ba68f refactor(commands): separate commands and its core into two folders (#32)
- I think it would be better if one for commands only, one for the spec
handling core logic so people won't be confused by the core logic inside
the commands folder (cleaner I guess)
- Regen docs
2026-07-05 11:27:30 +07:00

26 lines
961 B
Go

package sys
import (
"github.com/versenilvis/iris/spec"
)
func init() {
spec.Register(&spec.Spec{
Name: "dscacheutil",
Description: "Utility for managing the Directory Service cache",
Subcommands: []spec.Subcommand{
{Name: "category", Description: "Category to query"},
},
Options: []spec.Option{
{Name: "-h", Description: "List the options for calling dscacheutil"},
{Name: "-q", Description: "Query the Directory Service cache"},
{Name: "-a", Description: "Attribute to query"},
{Name: "-cachedump", Description: "Get an overview of the cache by default"},
{Name: "-buckets", Description: "Get an overview of the cache by default"},
{Name: "-entries", Description: "Dump detailed information about cache entries"},
{Name: "-configuration", Description: "Flush the entire cache"},
{Name: "-statistics", Description: "Get statistics from the cache, including an overview an detailed call statistics"},
},
})
}