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
+21
View File
@@ -0,0 +1,21 @@
package fs
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "cp",
Description: "copy files and directories",
Generator: core.FileGenerator(),
Options: []core.Option{
{Name: "-r", Description: "recursive"},
{Name: "-a", Description: "archive mode"},
{Name: "-v", Description: "verbose"},
{Name: "-i", Description: "interactive"},
{Name: "-u", Description: "update (copy only if newer)"},
{Name: "-p", Description: "preserve attributes"},
},
})
}