diff --git a/src/command/info.go b/src/command/info.go new file mode 100644 index 0000000..45cb42f --- /dev/null +++ b/src/command/info.go @@ -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() + "'") +} diff --git a/src/main.go b/src/main.go index f5ce99a..8836daf 100644 --- a/src/main.go +++ b/src/main.go @@ -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:])