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
+20
View File
@@ -0,0 +1,20 @@
package fs
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "ls",
Description: "list directory contents",
Generator: core.FileGenerator(),
Options: []core.Option{
{Name: "-a", Description: "all files"},
{Name: "-l", Description: "long format"},
{Name: "-h", Description: "human readable"},
{Name: "-R", Description: "recursive"},
{Name: "-t", Description: "sort by time"},
},
})
}