Skip to content

Commit c9ded39

Browse files
committed
Add templates manifest for CLI
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 99fc414 commit c9ded39

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,21 @@ They are retained in this repository for backwards compatibility purposes.
66

77
See also: [Language support](https://docs.openfaas.com/languages/overview/).
88

9+
## Usage
10+
11+
```bash
12+
faas-cli template store pull https://github.com/openfaas/templates-classic
13+
```
14+
15+
Or
16+
17+
```bash
18+
export OPENFAAS_TEMPLATE_STORE_URL="https://github.com/openfaas/templates-classic"
19+
20+
faas-cli new --lang go \
21+
NAME
22+
```
23+
924
### License
1025

1126
This project is part of the OpenFaaS project licensed under the MIT License.

templates.json

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[
2+
{
3+
"template": "python3",
4+
"platform": "x86_64",
5+
"language": "Python",
6+
"source": "openfaas",
7+
"description": "Classic Python 3 template",
8+
"repo": "https://github.com/openfaas/templates-classic",
9+
"official": "true"
10+
},
11+
{
12+
"template": "python3-debian",
13+
"platform": "x86_64",
14+
"language": "Python",
15+
"source": "openfaas",
16+
"description": "Python 3 Debian template",
17+
"repo": "https://github.com/openfaas/templates-classic",
18+
"official": "true"
19+
},
20+
{
21+
"template": "go",
22+
"platform": "x86_64",
23+
"language": "Go",
24+
"source": "openfaas",
25+
"description": "Legacy Golang template",
26+
"repo": "https://github.com/openfaas/templates-classic",
27+
"official": "true"
28+
},
29+
{
30+
"template": "ruby",
31+
"platform": "x86_64",
32+
"language": "Ruby",
33+
"source": "openfaas",
34+
"description": "Classic Ruby 3.3.6 template",
35+
"repo": "https://github.com/openfaas/templates-classic",
36+
"official": "true"
37+
}
38+
]

0 commit comments

Comments
 (0)