Skip to content

Commit

Permalink
Changes to 'use' in cmd folder (flyteorg#235)
Browse files Browse the repository at this point in the history
* Update nouns.rst

* removed html links

 Created separate rst file for each noun and referenced it in the nouns.rst file.

* Update verbs.rst

* Deleted newly added rst files

error with codecov, so deleted the newly added rst files.

* Delete verbs.rst

* Created separate rst files for every resource

* Changes to files in cmd folder

* Update create_test.go

* cmd folders

* Update cmd/create/execution.go

Co-authored-by: Samhita Alla <[email protected]>

* Added verbs.rst

* changes to cmd folder files

/bin removed,

* Update based on review

* Update cmd/create/project.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/create/create.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/create/create_test.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/delete/delete.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/delete/matchable_cluster_resource_attribute.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/delete/matchable_task_resource_attribute.go

Co-authored-by: Samhita Alla <[email protected]>

* Changes to delete - matchable_plugin_override

* Changes to .go files in cmd

* Changed flytesnack to Flytesnack

* Creates to create

* Update cmd/get/launch_plan.go

Co-authored-by: Samhita Alla <[email protected]>

* Changed 'launchplan' to 'launch plan'

* Update cmd/register/examples.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/register/examples.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/register/examples.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/register/files.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/register/register.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/register/register_test.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/sandbox/sandbox.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/sandbox/start.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/sandbox/start.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/sandbox/status.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/update/matchable_cluster_resource_attribute.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/update/matchable_cluster_resource_attribute.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/update/matchable_execution_cluster_label.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/update/matchable_execution_queue_attribute.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/update/matchable_plugin_override.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/update/matchable_task_resource_attribute.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/update/matchable_workflow_execution_config.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/update/matchable_workflow_execution_config.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/update/update.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/upgrade/upgrade.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/upgrade/upgrade.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/version/version.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/update/matchable_task_resource_attribute.go

Co-authored-by: Samhita Alla <[email protected]>

* Update cmd/update/update.go

Co-authored-by: Samhita Alla <[email protected]>

* Resolved changes

* Changed 'delte' to 'delete'

* Updated rst files

Created rst files for every noun, and linked the associated verbs with it

* Trial

* Removed the extra whitespace

* Changed 'delte' to 'delete'

* Changed 'use' in some cmd folders

* Description to rst files

* Resolved conflicts

Co-authored-by: Samhita Alla <[email protected]>
  • Loading branch information
2 people authored and austin362667 committed May 7, 2024
1 parent 59a6ce1 commit 76f2ae9
Show file tree
Hide file tree
Showing 74 changed files with 359 additions and 304 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ func TestDeleteWorkflowExecutionConfig(t *testing.T) {
deleteWorkflowExecutionConfigSetup()
// No args implying project domain attribute deletion
u.DeleterExt.OnDeleteProjectDomainAttributesMatch(mock.Anything, mock.Anything, mock.Anything,
mock.Anything).Return(fmt.Errorf("failed to delte project domain attributes"))
mock.Anything).Return(fmt.Errorf("failed to delete project domain attributes"))
err = deleteWorkflowExecutionConfig(ctx, args, cmdCtx)
assert.NotNil(t, err)
assert.Equal(t, fmt.Errorf("failed to delte project domain attributes"), err)
assert.Equal(t, fmt.Errorf("failed to delete project domain attributes"), err)
u.DeleterExt.AssertCalled(t, "DeleteProjectDomainAttributes",
ctx, config.GetConfig().Project, config.GetConfig().Domain, admin.MatchableResource_WORKFLOW_EXECUTION_CONFIG)
})
Expand Down
4 changes: 2 additions & 2 deletions flytectl/cmd/get/matchable_execution_cluster_label_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func TestGetExecutionClusterLabel(t *testing.T) {
ctx, config.GetConfig().Project, config.GetConfig().Domain, admin.MatchableResource_EXECUTION_CLUSTER_LABEL)
tearDownAndVerify(t, ``)
})
t.Run("failed get project domain attribute", func(t *testing.T) {
t.Run("failed to get project domain attribute", func(t *testing.T) {
var args []string
setup()
getExecutionClusterLabelSetup()
Expand Down Expand Up @@ -120,7 +120,7 @@ func TestGetExecutionClusterLabel(t *testing.T) {
admin.MatchableResource_EXECUTION_CLUSTER_LABEL)
tearDownAndVerify(t, `{"project":"dummyProject","domain":"dummyDomain","workflow":"workflow","value":"foo"}`)
})
t.Run("failed get workflow attribute", func(t *testing.T) {
t.Run("failed to get workflow attribute", func(t *testing.T) {
var args []string
setup()
getExecutionClusterLabelSetup()
Expand Down
2 changes: 1 addition & 1 deletion flytectl/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func newRootCmd() *cobra.Command {
PersistentPreRunE: initConfig,
Long: "FlyteCTL is CLI tool written in go to interact with Flyteadmin service",
Short: "FlyteCTL CLI tool",
Use: "FlyteCTL",
Use: "flytectl",
DisableAutoGenTag: true,
}

Expand Down
2 changes: 1 addition & 1 deletion flytectl/cmd/sandbox/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
)

const (
startShort = "Start the flyte sandbox cluster"
startShort = "Start the Flyte Sandbox cluster"
startLong = `
The Flyte Sandbox is a fully standalone minimal environment for running Flyte. It provides a simplified way of running Flyte sandbox as a single Docker container locally.
Expand Down
2 changes: 1 addition & 1 deletion flytectl/cmd/upgrade/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func TestUpgradeCommand(t *testing.T) {
rootCmd := &cobra.Command{
Long: "FlyteCTL is CLI tool written in go to interact with flyteadmin service",
Short: "FlyteCTL CLI tool",
Use: "FlyteCTL",
Use: "flytectl",
DisableAutoGenTag: true,
}
upgradeCmd := SelfUpgrade(rootCmd)
Expand Down
2 changes: 1 addition & 1 deletion flytectl/cmd/version/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func TestVersionCommand(t *testing.T) {
rootCmd := &cobra.Command{
Long: "FlyteCTL is CLI tool written in go to interact with Flyteadmin service",
Short: "FlyteCTL CLI tool",
Use: "FlyteCTL",
Use: "flytectl",
DisableAutoGenTag: true,
}
versionCommand := GetVersionCommand(rootCmd)
Expand Down
11 changes: 8 additions & 3 deletions flytectl/docs/source/cluster-resource-attribute.rst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions flytectl/docs/source/config.rst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion flytectl/docs/source/examples.rst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions flytectl/docs/source/execution-cluster-label.rst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions flytectl/docs/source/execution-queue-attribute.rst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions flytectl/docs/source/execution.rst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion flytectl/docs/source/files.rst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions flytectl/docs/source/gen/FlyteCTL.rst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions flytectl/docs/source/gen/FlyteCTL_completion.rst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions flytectl/docs/source/gen/FlyteCTL_config.rst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions flytectl/docs/source/gen/FlyteCTL_config_discover.rst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions flytectl/docs/source/gen/FlyteCTL_config_init.rst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions flytectl/docs/source/gen/FlyteCTL_config_validate.rst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions flytectl/docs/source/gen/FlyteCTL_create.rst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions flytectl/docs/source/gen/FlyteCTL_create_execution.rst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 76f2ae9

Please sign in to comment.