Skip to content

Commit

Permalink
add new templates and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Vlasic committed Jan 14, 2022
1 parent e06ecc5 commit 9899279
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 20 deletions.
30 changes: 20 additions & 10 deletions cli/controller/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,29 @@ import (
)

const (
PingTemplate = "ping"
ExcusesTemplate = "excuses"
ChatTemplate = "chat"
TodoTemplate = "todo"
G2STemplate = "github-to-slack"
PingTemplate = "ping"
ExcusesTemplate = "excuses"
ChatTemplate = "chat"
TodoTemplate = "todo"
G2STemplate = "github-to-slack"
HNAlertsTemplate = "hn-alerts"
SignupTemplate = "signup"
AtlasTemplate = "mongo-atlas"
S3UploadTemplate = "presigned-s3-upload"
NgsChatTemplate = "ngs-chat"
)

var TemplateRepos = map[string]string{
PingTemplate: "https://github.com/mantil-io/template-ping",
ExcusesTemplate: "https://github.com/mantil-io/template-excuses",
ChatTemplate: "https://github.com/mantil-io/template-chat",
TodoTemplate: "https://github.com/mantil-io/template-todo",
G2STemplate: "https://github.com/mantil-io/template-github-to-slack",
PingTemplate: "https://github.com/mantil-io/template-ping",
ExcusesTemplate: "https://github.com/mantil-io/template-excuses",
ChatTemplate: "https://github.com/mantil-io/template-chat",
TodoTemplate: "https://github.com/mantil-io/template-todo",
G2STemplate: "https://github.com/mantil-io/template-github-to-slack",
HNAlertsTemplate: "https://github.com/mantil-io/example-hn-alerts",
SignupTemplate: "https://github.com/mantil-io/example-signup",
AtlasTemplate: "https://github.com/mantil-io/example-mongo-atlas",
S3UploadTemplate: "https://github.com/mantil-io/template-presigned-s3-upload",
NgsChatTemplate: "https://github.com/mantil-io/example-ngs-chat",
}

const (
Expand Down
15 changes: 10 additions & 5 deletions cli/texts/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,16 @@ var New = Command{
Creates a new Mantil project from the source provided with the --from option.
The source can either be an existing git repository or one of the predefined templates:
ping - https://github.com/mantil-io/template-ping
excuses - https://github.com/mantil-io/template-excuses
chat - https://github.com/mantil-io/template-chat
todo - https://github.com/mantil-io/template-todo
github-to-slack - https://github.com/mantil-io/template-github-to-slack
ping - https://github.com/mantil-io/template-ping
excuses - https://github.com/mantil-io/template-excuses
chat - https://github.com/mantil-io/template-chat
todo - https://github.com/mantil-io/template-todo
github-to-slack - https://github.com/mantil-io/template-github-to-slack
hn-alerts - https://github.com/mantil-io/example-hn-alerts
signup - https://github.com/mantil-io/example-signup
mongo-atlas - https://github.com/mantil-io/example-mongo-atlas
presigned-s3-upload - https://github.com/mantil-io/template-presigned-s3-upload
ngs-chat - https://github.com/mantil-io/example-ngs-chat
If no source is provided it will default to the template "ping".
Expand Down
15 changes: 10 additions & 5 deletions docs/commands/mantil_new.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@ Creates a new Mantil project

Creates a new Mantil project from the source provided with the --from option.
The source can either be an existing git repository or one of the predefined templates:
ping - https://github.com/mantil-io/template-ping
excuses - https://github.com/mantil-io/template-excuses
chat - https://github.com/mantil-io/template-chat
todo - https://github.com/mantil-io/template-todo
github-to-slack - https://github.com/mantil-io/template-github-to-slack
ping - https://github.com/mantil-io/template-ping
excuses - https://github.com/mantil-io/template-excuses
chat - https://github.com/mantil-io/template-chat
todo - https://github.com/mantil-io/template-todo
github-to-slack - https://github.com/mantil-io/template-github-to-slack
hn-alerts - https://github.com/mantil-io/example-hn-alerts
signup - https://github.com/mantil-io/example-signup
mongo-atlas - https://github.com/mantil-io/example-mongo-atlas
presigned-s3-upload - https://github.com/mantil-io/template-presigned-s3-upload
ngs-chat - https://github.com/mantil-io/example-ngs-chat

If no source is provided it will default to the template "ping".

Expand Down

0 comments on commit 9899279

Please sign in to comment.