Info command

This commit is contained in:
2024-07-20 00:40:23 +02:00
parent fcaddcf60c
commit 448728061c
2 changed files with 24 additions and 1 deletions

22
src/command/info.go Normal file
View File

@@ -0,0 +1,22 @@
package command
import "alma/helpers"
type InfoCommand struct {
}
func (InfoCommand) GetName() string {
return "info"
}
func (InfoCommand) GetHelpText() {
println(
`Usage:
alma info
alma info [module]
alma info [repository] [module]`)
}
func (InfoCommand) Run(args []string) {
println("Platform is '" + helpers.GetOsIdentifier() + "'")
}

View File

@@ -1,13 +1,14 @@
package main
import (
"alma/command"
"os"
"alma/command"
)
func main() {
commands := []command.Command{
command.LinkCommand{},
command.InfoCommand{},
}
run(commands, os.Args[1:])