2022-10-31 22:03:50 +01:00
|
|
|
package templatecmd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
2022-11-06 00:39:03 +01:00
|
|
|
var templates = []string{"docker", "gobin_default", "default", "rustbin_default"}
|
2022-10-31 22:03:50 +01:00
|
|
|
|
|
|
|
func NewLsCmd() *cobra.Command {
|
|
|
|
return &cobra.Command{
|
|
|
|
Use: "ls",
|
|
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
|
|
|
|
|
|
for _, t := range templates {
|
|
|
|
fmt.Printf("%s\n", t)
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|