func/cmd
Luke Kingland 9a0335de7d
src: exported client constructor with options (#883)
* update root and version structure and help text

* fix: limit openshift int test with tag

* refactor: commands to use simplifed, unified constructor

* fix ineffectual assignment lint error

* cleanup

* add repository to run command

* callout for forthcoming s2i builder impl

* lint errors

* re-add the deferred client factory

* remove setNamespaceFlag now that it is persistent

* avoid side-effect of global-mutating deploy tests

* reduce line-by-line difference for PR ease

* simplificaiton of tests and comment lines for further PR ease purposes

* reduce inconsequential differences for ease of PR

* tests to RootCommandConfig

* review comment updates

* fix lint errors

* replace stdlib Setenv in tests

Using t.Setenv will require an update to go1.17, which is out of scope
for this PR.

* pass ClientFactory throughout

* explicitly empty test command args

See https://github.com/spf13/cobra/pull/155

Errors can still be encountered when, for example, using precomiled
tests.  Explicitly setting constructed command args to the empty slice
ensures we avoid hitting any futher edge cases.
2022-03-30 00:58:46 +00:00
..
func src: exported client constructor with options (#883) 2022-03-30 00:58:46 +00:00
testdata/repository.git feat: repository management cli (#514) 2021-09-09 08:09:00 -07:00
build.go src: exported client constructor with options (#883) 2022-03-30 00:58:46 +00:00
build_test.go src: exported client constructor with options (#883) 2022-03-30 00:58:46 +00:00
client.go src: exported client constructor with options (#883) 2022-03-30 00:58:46 +00:00
completion.go Cleanup commands (#807) 2022-02-03 10:26:21 -08:00
completion_util.go src: promote verbosity to constructor arg (#869) 2022-03-04 11:19:36 -08:00
config.go Improve error handling (#916) 2022-03-22 17:18:17 -07:00
config_envs.go Improve error handling (#916) 2022-03-22 17:18:17 -07:00
config_labels.go feat: command help text template preprocessing (#875) 2022-03-02 03:56:43 -08:00
config_labels_test.go src: exported client constructor with options (#883) 2022-03-30 00:58:46 +00:00
config_volumes.go 🐛 allow adding environment variables without a cluster connection (#893) 2022-03-16 07:20:00 -07:00
create.go src: exported client constructor with options (#883) 2022-03-30 00:58:46 +00:00
create_test.go src: exported client constructor with options (#883) 2022-03-30 00:58:46 +00:00
delete.go src: exported client constructor with options (#883) 2022-03-30 00:58:46 +00:00
delete_test.go src: exported client constructor with options (#883) 2022-03-30 00:58:46 +00:00
deploy.go src: exported client constructor with options (#883) 2022-03-30 00:58:46 +00:00
deploy_test.go src: exported client constructor with options (#883) 2022-03-30 00:58:46 +00:00
format.go feat: add a URL output type for `func describe` (#389) 2021-06-18 09:50:36 +02:00
info.go src: exported client constructor with options (#883) 2022-03-30 00:58:46 +00:00
invoke.go src: exported client constructor with options (#883) 2022-03-30 00:58:46 +00:00
list.go src: exported client constructor with options (#883) 2022-03-30 00:58:46 +00:00
repository.go src: exported client constructor with options (#883) 2022-03-30 00:58:46 +00:00
repository_test.go src: exported client constructor with options (#883) 2022-03-30 00:58:46 +00:00
root.go src: exported client constructor with options (#883) 2022-03-30 00:58:46 +00:00
root_test.go src: exported client constructor with options (#883) 2022-03-30 00:58:46 +00:00
run.go src: exported client constructor with options (#883) 2022-03-30 00:58:46 +00:00
run_test.go src: exported client constructor with options (#883) 2022-03-30 00:58:46 +00:00
version.go src: promote verbosity to constructor arg (#869) 2022-03-04 11:19:36 -08:00