Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename knative-sandbox #1905

Merged
merged 4 commits into from
Aug 5, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ test-typescript: ## Test Typescript templates
update-runtimes: pull-runtimes generate/zz_filesystem_generated.go ## Update Scaffolding Runtimes

pull-runtimes:
cd templates/go/scaffolding/instanced-http && go get -u github.com/knative-sandbox/func-go/http
cd templates/go/scaffolding/static-http && go get -u github.com/knative-sandbox/func-go/http
cd templates/go/scaffolding/instanced-cloudevents && go get -u github.com/knative-sandbox/func-go/cloudevents
cd templates/go/scaffolding/static-cloudevents && go get -u github.com/knative-sandbox/func-go/cloudevents
cd templates/go/scaffolding/instanced-http && go get -u github.com/knative-extensions/func-go/http
cd templates/go/scaffolding/static-http && go get -u github.com/knative-extensions/func-go/http
cd templates/go/scaffolding/instanced-cloudevents && go get -u github.com/knative-extensions/func-go/cloudevents
cd templates/go/scaffolding/static-cloudevents && go get -u github.com/knative-extensions/func-go/cloudevents
matejvasek marked this conversation as resolved.
Show resolved Hide resolved

.PHONY: cert
certs: templates/certs/ca-certificates.crt ## Update root certificates
Expand Down
6 changes: 3 additions & 3 deletions cmd/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ EXAMPLES
$ {{rootCmdUse}} repository -c

o Add a repository and create a new function using a template from it:
$ {{rootCmdUse}} repository add functastic https://github.com/knative-sandbox/func-tastic
$ {{rootCmdUse}} repository add functastic https://github.com/knative-extensions/func-tastic
$ {{rootCmdUse}} repository list
default
functastic
$ {{rootCmdUse}} create -l go -t functastic/hello-world
...

o Add a repository specifying the branch to use (metacontroller):
$ {{rootCmdUse}} repository add metacontroller https://github.com/knative-sandbox/func-tastic#metacontroler
$ {{rootCmdUse}} repository add metacontroller https://github.com/knative-extensions/func-tastic#metacontroler
$ {{rootCmdUse}} repository list
default
metacontroller
Expand All @@ -126,7 +126,7 @@ EXAMPLES
o List all repositories including the URL from which remotes were installed
$ {{rootCmdUse}} repository list -v
default
metacontroller https://github.com/knative-sandbox/func-tastic#metacontroller
metacontroller https://github.com/knative-extensions/func-tastic#metacontroller

o Rename an installed repository
$ {{rootCmdUse}} repository list
Expand Down
4 changes: 2 additions & 2 deletions docs/language-packs/language-pack-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Built in to the Functions library are Language Packs for Go, Node.js, Python, Qu
Language Packs are distributed as a set of templates for one or more languages via Git repositories, and installed by the developer locally using the `func` CLI.

```
func repository add func https://github.com/knative-sandbox/func-tastic
func repository add func https://github.com/knative-extensions/func-tastic
func create -l go -t func/hello-world
```

Expand Down Expand Up @@ -190,7 +190,7 @@ When `func create` is used to generate a Function project, the Language Pack pro
Using external Language Packs is made possible through the `func repository` command, which allows Function developers to add and remove Language Packs from their local development environment. For example:

```
❯ func repository add https://github.com/knative-sandbox/func-tastic functastic # Add the func-tastic repo to the local environment
❯ func repository add https://github.com/knative-extensions/func-tastic functastic # Add the func-tastic repo to the local environment
❯ func repo list # list repos
default
functastic
Expand Down
6 changes: 3 additions & 3 deletions docs/language-packs/templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ To make use of more complex initial function implementions, or to define runtime

## External Git Repositories

When creating a new function, a Git repository can be specified as the source for the template files. For example, the the [knative-sandbox/func-tastic repository](https://github.com/knative-sandbox/func-tastic) contains a set of example functions which can be used during project creation.
When creating a new function, a Git repository can be specified as the source for the template files. For example, the the [knative-extensions/func-tastic repository](https://github.com/knative-extensions/func-tastic) contains a set of example functions which can be used during project creation.

For example, the func-tastic repository contains an example ["metacontroller"](https://metacontroller.github.io/metacontroller) function implementation for Node.js. To use this template via the CLI, use the flags:

func create <name> --template metacontroller --repository https://github.com/knative-sandbox/func-tastic
func create <name> --template metacontroller --repository https://github.com/knative-extensions/func-tastic

## Locally Installing Repositories

Expand All @@ -21,7 +21,7 @@ Template repositories can also be installed locally by placing them in the funct
To install the func-tastic templates locally, for example, use the `func repository add` command:

```
func repository add https://github.com/knative-sandbox/func-tastic
func repository add https://github.com/knative-extensions/func-tastic
```

Once installed, the metacontroller template can be specified:
Expand Down
6 changes: 3 additions & 3 deletions docs/reference/func_repository.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ EXAMPLES
$ func repository -c

o Add a repository and create a new function using a template from it:
$ func repository add functastic https://github.com/knative-sandbox/func-tastic
$ func repository add functastic https://github.com/knative-extensions/func-tastic
$ func repository list
default
functastic
$ func create -l go -t functastic/hello-world
...

o Add a repository specifying the branch to use (metacontroller):
$ func repository add metacontroller https://github.com/knative-sandbox/func-tastic#metacontroler
$ func repository add metacontroller https://github.com/knative-extensions/func-tastic#metacontroler
$ func repository list
default
metacontroller
Expand All @@ -109,7 +109,7 @@ EXAMPLES
o List all repositories including the URL from which remotes were installed
$ func repository list -v
default
metacontroller https://github.com/knative-sandbox/func-tastic#metacontroller
metacontroller https://github.com/knative-extensions/func-tastic#metacontroller

o Rename an installed repository
$ func repository list
Expand Down
Loading