feat(commands): refactor and add more commands

This commit is contained in:
verse91
2026-04-09 23:30:16 +07:00
parent 76458ce52e
commit f4816d2b5f
31 changed files with 546 additions and 110 deletions
+18
View File
@@ -0,0 +1,18 @@
package info
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "du",
Description: "estimate file space usage",
Generator: core.FileGenerator(),
Options: []core.Option{
{Name: "-h", Description: "human readable"},
{Name: "-s", Description: "summarize"},
{Name: "-a", Description: "all files"},
},
})
}