Skip to content

Commit 9899279

Browse files
author
Ivan Vlasic
committed
add new templates and examples
1 parent e06ecc5 commit 9899279

File tree

3 files changed

+40
-20
lines changed

3 files changed

+40
-20
lines changed

cli/controller/new.go

+20-10
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,29 @@ import (
1414
)
1515

1616
const (
17-
PingTemplate = "ping"
18-
ExcusesTemplate = "excuses"
19-
ChatTemplate = "chat"
20-
TodoTemplate = "todo"
21-
G2STemplate = "github-to-slack"
17+
PingTemplate = "ping"
18+
ExcusesTemplate = "excuses"
19+
ChatTemplate = "chat"
20+
TodoTemplate = "todo"
21+
G2STemplate = "github-to-slack"
22+
HNAlertsTemplate = "hn-alerts"
23+
SignupTemplate = "signup"
24+
AtlasTemplate = "mongo-atlas"
25+
S3UploadTemplate = "presigned-s3-upload"
26+
NgsChatTemplate = "ngs-chat"
2227
)
2328

2429
var TemplateRepos = map[string]string{
25-
PingTemplate: "https://github.com/mantil-io/template-ping",
26-
ExcusesTemplate: "https://github.com/mantil-io/template-excuses",
27-
ChatTemplate: "https://github.com/mantil-io/template-chat",
28-
TodoTemplate: "https://github.com/mantil-io/template-todo",
29-
G2STemplate: "https://github.com/mantil-io/template-github-to-slack",
30+
PingTemplate: "https://github.com/mantil-io/template-ping",
31+
ExcusesTemplate: "https://github.com/mantil-io/template-excuses",
32+
ChatTemplate: "https://github.com/mantil-io/template-chat",
33+
TodoTemplate: "https://github.com/mantil-io/template-todo",
34+
G2STemplate: "https://github.com/mantil-io/template-github-to-slack",
35+
HNAlertsTemplate: "https://github.com/mantil-io/example-hn-alerts",
36+
SignupTemplate: "https://github.com/mantil-io/example-signup",
37+
AtlasTemplate: "https://github.com/mantil-io/example-mongo-atlas",
38+
S3UploadTemplate: "https://github.com/mantil-io/template-presigned-s3-upload",
39+
NgsChatTemplate: "https://github.com/mantil-io/example-ngs-chat",
3040
}
3141

3242
const (

cli/texts/commands.go

+10-5
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,16 @@ var New = Command{
176176
177177
Creates a new Mantil project from the source provided with the --from option.
178178
The source can either be an existing git repository or one of the predefined templates:
179-
ping - https://github.com/mantil-io/template-ping
180-
excuses - https://github.com/mantil-io/template-excuses
181-
chat - https://github.com/mantil-io/template-chat
182-
todo - https://github.com/mantil-io/template-todo
183-
github-to-slack - https://github.com/mantil-io/template-github-to-slack
179+
ping - https://github.com/mantil-io/template-ping
180+
excuses - https://github.com/mantil-io/template-excuses
181+
chat - https://github.com/mantil-io/template-chat
182+
todo - https://github.com/mantil-io/template-todo
183+
github-to-slack - https://github.com/mantil-io/template-github-to-slack
184+
hn-alerts - https://github.com/mantil-io/example-hn-alerts
185+
signup - https://github.com/mantil-io/example-signup
186+
mongo-atlas - https://github.com/mantil-io/example-mongo-atlas
187+
presigned-s3-upload - https://github.com/mantil-io/template-presigned-s3-upload
188+
ngs-chat - https://github.com/mantil-io/example-ngs-chat
184189
185190
If no source is provided it will default to the template "ping".
186191

docs/commands/mantil_new.md

+10-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@ Creates a new Mantil project
55

66
Creates a new Mantil project from the source provided with the --from option.
77
The source can either be an existing git repository or one of the predefined templates:
8-
ping - https://github.com/mantil-io/template-ping
9-
excuses - https://github.com/mantil-io/template-excuses
10-
chat - https://github.com/mantil-io/template-chat
11-
todo - https://github.com/mantil-io/template-todo
12-
github-to-slack - https://github.com/mantil-io/template-github-to-slack
8+
ping - https://github.com/mantil-io/template-ping
9+
excuses - https://github.com/mantil-io/template-excuses
10+
chat - https://github.com/mantil-io/template-chat
11+
todo - https://github.com/mantil-io/template-todo
12+
github-to-slack - https://github.com/mantil-io/template-github-to-slack
13+
hn-alerts - https://github.com/mantil-io/example-hn-alerts
14+
signup - https://github.com/mantil-io/example-signup
15+
mongo-atlas - https://github.com/mantil-io/example-mongo-atlas
16+
presigned-s3-upload - https://github.com/mantil-io/template-presigned-s3-upload
17+
ngs-chat - https://github.com/mantil-io/example-ngs-chat
1318

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

0 commit comments

Comments
 (0)