func/cmd
Lance Ball fea4a72734
feat: adds a `func environment` command (#1761)
* feat: adds a `func environment` command

Adds `func environment` to print the current function execution
environment as JSON.

See: https://github.com/knative/func/discussions/1676

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup: add environment variables

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup: add cluster host

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup: review feedback

Signed-off-by: Lance Ball <lball@redhat.com>

---------

Signed-off-by: Lance Ball <lball@redhat.com>
2023-05-31 12:36:35 +00:00
..
func chore: refactor repository layout (#1554) 2023-02-15 08:46:52 +00:00
prompt chore: move prompts to a separate package (#1592) 2023-03-06 15:08:33 +00:00
templates Replace knative.dev/client references to knative.dev/client-pkg (#1671) 2023-04-10 15:59:39 +00:00
testdata feat: deploy command global config with function context (#1434) 2023-02-06 08:43:35 +00:00
build.go feat: oci directory pusher (#1702) 2023-05-18 23:19:13 +00:00
build_test.go Replace path with function struct in client api (#1640) 2023-03-31 00:45:00 +00:00
client.go feat: func run support all build options (#1693) 2023-05-02 12:11:55 +00:00
client_test.go Replace path with function struct in client api (#1640) 2023-03-31 00:45:00 +00:00
completion.go cli help text updates and flags cleanup (#1564) 2023-03-01 09:35:54 +00:00
completion_util.go fix: template flag completion (#1670) 2023-04-07 18:25:20 +00:00
config.go chore: improve error messages for most commands (#1745) 2023-05-17 15:52:12 +00:00
config_envs.go docs: standardize env flag help suffix (#1689) 2023-04-25 13:56:45 +00:00
config_git.go feat: implement `func config git remove` (#1626) 2023-03-17 12:09:36 +00:00
config_git_remove.go docs: standardize env flag help suffix (#1689) 2023-04-25 13:56:45 +00:00
config_git_set.go fix: don't require credentials when not configuring webhook (#1743) 2023-05-18 21:35:13 +00:00
config_labels.go cli help text updates and flags cleanup (#1564) 2023-03-01 09:35:54 +00:00
config_labels_test.go chore: refactor repository layout (#1554) 2023-02-15 08:46:52 +00:00
config_test.go feat: Pipelines as Code - initial support (pack) (#1594) 2023-03-07 15:41:20 +00:00
config_volumes.go add pvc and emptyDir to function_volumes (#1666) 2023-05-03 13:57:56 +00:00
create.go docs: standardize env flag help suffix (#1689) 2023-04-25 13:56:45 +00:00
create_test.go chore: refactor repository layout (#1554) 2023-02-15 08:46:52 +00:00
delete.go chore: improve error messages for most commands (#1745) 2023-05-17 15:52:12 +00:00
delete_test.go Replace path with function struct in client api (#1640) 2023-03-31 00:45:00 +00:00
deploy.go chore: improve error messages for most commands (#1745) 2023-05-17 15:52:12 +00:00
deploy_test.go src: Envs type (#1701) 2023-04-28 16:45:51 +00:00
describe.go chore: improve error messages for most commands (#1745) 2023-05-17 15:52:12 +00:00
describe_test.go Replace path with function struct in client api (#1640) 2023-03-31 00:45:00 +00:00
environment.go feat: adds a `func environment` command (#1761) 2023-05-31 12:36:35 +00:00
format.go chore: use dot as path default rather than absolute path (#1184) 2022-08-24 11:02:18 +00:00
invoke.go chore: improve error messages for most commands (#1745) 2023-05-17 15:52:12 +00:00
invoke_test.go feat: host-based scaffolded function runner (#1733) 2023-05-24 21:26:25 +00:00
languages.go docs: standardize env flag help suffix (#1689) 2023-04-25 13:56:45 +00:00
languages_test.go fix: mock and noop inconsistency (#1409) 2022-11-07 12:45:22 +00:00
list.go docs: standardize env flag help suffix (#1689) 2023-04-25 13:56:45 +00:00
list_test.go chore: refactor repository layout (#1554) 2023-02-15 08:46:52 +00:00
repository.go cli help text updates and flags cleanup (#1564) 2023-03-01 09:35:54 +00:00
repository_test.go feat: adds refspec support for `func repo add` (#1558) 2023-02-16 04:05:51 +00:00
root.go feat: adds a `func environment` command (#1761) 2023-05-31 12:36:35 +00:00
root_test.go Replace knative.dev/client references to knative.dev/client-pkg (#1671) 2023-04-10 15:59:39 +00:00
run.go chore: improve error messages for most commands (#1745) 2023-05-17 15:52:12 +00:00
run_test.go feat: write a build stamp log to .func (#1695) 2023-05-03 21:43:56 +00:00
templates.go docs: standardize env flag help suffix (#1689) 2023-04-25 13:56:45 +00:00
templates_test.go Add Python templates for gunicorn and uwsgi + Flask (#1655) 2023-04-10 19:03:48 +00:00
version.go cli help text updates and flags cleanup (#1564) 2023-03-01 09:35:54 +00:00