Skip to content

Commit

Permalink
Add templates manifest for CLI
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Jan 23, 2025
1 parent 99fc414 commit c9ded39
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,21 @@ They are retained in this repository for backwards compatibility purposes.

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

## Usage

```bash
faas-cli template store pull https://github.com/openfaas/templates-classic
```

Or

```bash
export OPENFAAS_TEMPLATE_STORE_URL="https://github.com/openfaas/templates-classic"

faas-cli new --lang go \
NAME
```

### License

This project is part of the OpenFaaS project licensed under the MIT License.
38 changes: 38 additions & 0 deletions templates.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[
{
"template": "python3",
"platform": "x86_64",
"language": "Python",
"source": "openfaas",
"description": "Classic Python 3 template",
"repo": "https://github.com/openfaas/templates-classic",
"official": "true"
},
{
"template": "python3-debian",
"platform": "x86_64",
"language": "Python",
"source": "openfaas",
"description": "Python 3 Debian template",
"repo": "https://github.com/openfaas/templates-classic",
"official": "true"
},
{
"template": "go",
"platform": "x86_64",
"language": "Go",
"source": "openfaas",
"description": "Legacy Golang template",
"repo": "https://github.com/openfaas/templates-classic",
"official": "true"
},
{
"template": "ruby",
"platform": "x86_64",
"language": "Ruby",
"source": "openfaas",
"description": "Classic Ruby 3.3.6 template",
"repo": "https://github.com/openfaas/templates-classic",
"official": "true"
}
]

0 comments on commit c9ded39

Please sign in to comment.