Skip to content

Commit

Permalink
rename knative-sandbox (#1905)
Browse files Browse the repository at this point in the history
* rename knative-sandbox

* fixup bad merge

* fixup: use knative.dev not github.com import path

---------

Co-authored-by: Matej Vasek <[email protected]>
Co-authored-by: Matej Vasek <[email protected]>
  • Loading branch information
3 people authored Aug 5, 2023
1 parent fe08004 commit 4e0db21
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
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 knative.dev/func-go/http
cd templates/go/scaffolding/static-http && go get -u knative.dev/func-go/http
cd templates/go/scaffolding/instanced-cloudevents && go get -u knative.dev/func-go/cloudevents
cd templates/go/scaffolding/static-cloudevents && go get -u knative.dev/func-go/cloudevents

.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

0 comments on commit 4e0db21

Please sign in to comment.