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: "wc",
Description: "word, line, character count",
Generator: core.FileGenerator(),
Options: []core.Option{
{Name: "-l", Description: "count lines"},
{Name: "-w", Description: "count words"},
{Name: "-c", Description: "count bytes"},
},
})
}