Info command
This commit is contained in:
22
src/command/info.go
Normal file
22
src/command/info.go
Normal 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() + "'")
|
||||
}
|
||||
@@ -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:])
|
||||
|
||||
Reference in New Issue
Block a user