Skip to content

Commit

Permalink
[Docs] Flytectl docs cleanup (flyteorg#210)
Browse files Browse the repository at this point in the history
* Docs Fix flytectl.rst

Signed-off-by: abhijeet007rocks8 <[email protected]>

* Doc fix config.go

Signed-off-by: abhijeet007rocks8 <[email protected]>

* Docs Update get/Execution.go

Signed-off-by: abhijeet007rocks8 <[email protected]>

* Docs Update get/Execution.go  Signed-off-by: Abhijeet Chatterjee <[email protected]>

Signed-off-by: abhijeet007rocks8 <[email protected]>

* docs update get/launch_plan.go

Signed-off-by: Abhijeet Chatterjee <[email protected]>
Signed-off-by: abhijeet007rocks8 <[email protected]>

* Docs fix get/matchable_cluster_resource_attribute.go

Signed-off-by: Abhijeet Chatterjee <[email protected]>
Signed-off-by: abhijeet007rocks8 <[email protected]>

* Docs Update matchable_execution_cluster_label.go

Signed-off-by: Abhijeet Chatterjee <[email protected]>
Signed-off-by: abhijeet007rocks8 <[email protected]>

* Docs Update matchable_execution_queue_attribute.go

Signed-off-by: Abhijeet Chatterjee <[email protected]>
Signed-off-by: abhijeet007rocks8 <[email protected]>

* Docs Update matchable_plugin_override.go

Signed-off-by: Abhijeet Chatterjee <[email protected]>
Signed-off-by: abhijeet007rocks8 <[email protected]>

* Docs Fix matchable_task_resource_attribute.go

Signed-off-by: Abhijeet Chatterjee <[email protected]>
Signed-off-by: abhijeet007rocks8 <[email protected]>

* Applied Suggestion

Signed-off-by: abhijeet007rocks8 <[email protected]>

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Applied Suggestion

Signed-off-by: abhijeet007rocks8 <[email protected]>

* Applied Suggestion

Signed-off-by: abhijeet007rocks8 <[email protected]>

* Applied Suggestion

Signed-off-by: abhijeet007rocks8 <[email protected]>

Co-authored-by: Samhita Alla <[email protected]>
  • Loading branch information
abhijeet007rocks8 and samhita-alla authored Nov 8, 2021
1 parent 8924563 commit 4752206
Show file tree
Hide file tree
Showing 9 changed files with 80 additions and 88 deletions.
4 changes: 2 additions & 2 deletions flytectl/cmd/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ var (
// Config hold configration for flytectl flag
type Config struct {
Project string `json:"project" pflag:",Specifies the project to work on."`
Domain string `json:"domain" pflag:",Specified the domain to work on."`
Output string `json:"output" pflag:",Specified the output type."`
Domain string `json:"domain" pflag:",Specifies the domain to work on."`
Output string `json:"output" pflag:",Specifies the output type."`
}

// OutputFormat will return output formate
Expand Down
20 changes: 10 additions & 10 deletions flytectl/cmd/get/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ import (
const (
executionShort = "Gets execution resources"
executionLong = `
Retrieves all the executions within project and domain.(execution,executions can be used interchangeably in these commands)
Retrieve all executions within the project and domain (execution, executions can be used interchangeably).
::
bin/flytectl get execution -p flytesnacks -d development
Retrieves execution by name within project and domain.
Retrieves executions by name within the project and domain.
::
Expand All @@ -34,44 +34,44 @@ Retrieves all the executions with filters.
bin/flytectl get execution -p flytesnacks -d development --filter.fieldSelector="execution.phase in (FAILED;SUCCEEDED),execution.duration<200"
Retrieves all the execution with limit and sorting.
Retrieve executions as per the specified limit and sorting parameters.
::
bin/flytectl get execution -p flytesnacks -d development --filter.sortBy=created_at --filter.limit=1 --filter.asc
Retrieves all the execution within project and domain in yaml format
Retrieve executions within the project and domain in YAML format.
::
bin/flytectl get execution -p flytesnacks -d development -o yaml
Retrieves all the execution within project and domain in json format.
Retrieve executions within the project and domain in JSON format.
::
bin/flytectl get execution -p flytesnacks -d development -o json
Get more details for the execution using --details flag which shows node executions along with task executions on them. Default view is tree view and TABLE format is not supported on this view
Get more details of the execution using the --details flag, which shows node and task executions. The default view is a tree view, and the TABLE view format is not supported on this view.
::
bin/flytectl get execution -p flytesnacks -d development oeh94k9r2r --details
Using yaml view for the details. In this view only node details are available. For task details pass --nodeID flag
Fetch execution details in YAML format. In this view, only node details are available. For task, send the --nodeID flag.
::
bin/flytectl get execution -p flytesnacks -d development oeh94k9r2r --details -o yaml
Using --nodeID flag to get task executions on a specific node. Use the nodeID attribute from node details view
Fetch task executions on a specific node using the --nodeID flag. Use the nodeID attribute given by the node details view.
::
bin/flytectl get execution -p flytesnacks -d development oeh94k9r2r --nodID n0
bin/flytectl get execution -p flytesnacks -d development oeh94k9r2r --nodeID n0
Task execution view is also available in yaml/json format. Below example shows yaml. This also contains inputs/outputs data for each node
Task execution view is also available in YAML/JSON format. The following example showcases YAML, where the output also contains input and output data of each node.
::
Expand Down
16 changes: 8 additions & 8 deletions flytectl/cmd/get/launch_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@ import (
const (
launchPlanShort = "Gets launch plan resources"
launchPlanLong = `
Retrieves all the launch plans within project and domain.(launchplan,launchplans can be used interchangeably in these commands)
Retrieve all launch plans within the project and domain (launchplan, launchplans can be used interchangeably).
::
flytectl get launchplan -p flytesnacks -d development
Retrieves launch plan by name within project and domain.
Retrieve a launch plan by name within the project and domain.
::
flytectl get launchplan -p flytesnacks -d development core.basic.lp.go_greet
Retrieves latest version of task by name within project and domain.
Retrieve the latest version of the task by name within the project and domain.
::
flytectl get launchplan -p flytesnacks -d development core.basic.lp.go_greet --latest
Retrieves particular version of launchplan by name within project and domain.
Retrieves a particular version of the launch plan by name within the project and domain.
::
Expand All @@ -57,25 +57,25 @@ Retrieves all the launch plans with limit and sorting.
bin/flytectl get launchplan -p flytesnacks -d development --filter.sortBy=created_at --filter.limit=1 --filter.asc
Retrieves all the launchplan within project and domain in yaml format.
Retrieves all launch plans within the project and domain in YAML format.
::
flytectl get launchplan -p flytesnacks -d development -o yaml
Retrieves all the launchplan within project and domain in json format
Retrieves all launch plans the within the project and domain in JSON format.
::
flytectl get launchplan -p flytesnacks -d development -o json
Retrieves a launch plans within project and domain for a version and generate the execution spec file for it to be used for launching the execution using create execution.
Retrieve a launch plan within the project and domain as per a version and generate the execution spec file; the file can be used to launch the execution using the 'create execution' command.
::
flytectl get launchplan -d development -p flytectldemo core.advanced.run_merge_sort.merge_sort --execFile execution_spec.yaml
The generated file would look similar to this
The generated file would look similar to this:
.. code-block:: yaml
Expand Down
16 changes: 7 additions & 9 deletions flytectl/cmd/get/matchable_cluster_resource_attribute.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ import (
)

const (
clusterResourceAttributesShort = "Gets matchable resources of cluster resource attributes"
clusterResourceAttributesShort = "Gets matchable resources of cluster resource attributes."
clusterResourceAttributesLong = `
Retrieves cluster resource attributes for given project and domain combination or additionally with workflow name.
Retrieves cluster resource attribute for project and domain
Here the command get cluster resource attributes for project flytectldemo and development domain.
Retrieve cluster resource attributes for the given project and domain.
Here, the command gets cluster resource attributes for the project flytectldemo and development domain.
::
flytectl get cluster-resource-attribute -p flytectldemo -d development
Expand All @@ -27,8 +25,8 @@ eg : output from the command
{"project":"flytectldemo","domain":"development","attributes":{"buzz":"lightyear","foo":"bar"}}
Retrieves cluster resource attribute for project and domain and workflow
Here the command get cluster resource attributes for project flytectldemo, development domain and workflow core.control_flow.run_merge_sort.merge_sort
Retrieve cluster resource attributes for the given project, domain, and workflow.
Here, the command gets cluster resource attributes for the project flytectldemo, development domain, and workflow 'core.control_flow.run_merge_sort.merge_sort'.
::
flytectl get cluster-resource-attribute -p flytectldemo -d development core.control_flow.run_merge_sort.merge_sort
Expand All @@ -39,8 +37,8 @@ eg : output from the command
{"project":"flytectldemo","domain":"development","workflow":"core.control_flow.run_merge_sort.merge_sort","attributes":{"buzz":"lightyear","foo":"bar"}}
Writing the cluster resource attribute to a file. If there are no cluster resource attributes , command would return an error.
Here the command gets task resource attributes and writes the config file to cra.yaml
Writes the cluster resource attributes to a file. If there are no cluster resource attributes,the command throws an error.
Here, the command gets the task resource attributes and writes the config file to cra.yaml file.
eg: content of cra.yaml
::
Expand Down
16 changes: 8 additions & 8 deletions flytectl/cmd/get/matchable_execution_cluster_label.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@ import (
)

const (
executionClusterLabelShort = "Gets matchable resources of execution cluster label"
executionClusterLabelShort = "Gets matchable resources of execution cluster label."
executionClusterLabelLong = `
Retrieves execution cluster label for given project and domain combination or additionally with workflow name.
// Retrieves the execution cluster label for a given project and domain, combination or additionally with workflow name.
Retrieves execution cluster label for project and domain
Retrieve the execution cluster label for the given project and domain.
Here the command get execution cluster label for project flytectldemo and development domain.
::
flytectl get execution-cluster-label -p flytectldemo -d development
eg : output from the command
e.g. : output from the command
.. code-block:: json
{"project":"flytectldemo","domain":"development","value":"foo"}
Retrieves execution cluster label for project and domain and workflow
Here the command get execution cluster label for project flytectldemo, development domain and workflow core.control_flow.run_merge_sort.merge_sort
Retrieve the execution cluster label for the given project, domain and workflow.
Here, the command gets the execution cluster label for the project flytectldemo, development domain, and workflow 'core.control_flow.run_merge_sort.merge_sort'.
::
flytectl get execution-cluster-label -p flytectldemo -d development core.control_flow.run_merge_sort.merge_sort
Expand All @@ -39,8 +39,8 @@ eg : output from the command
{"project":"flytectldemo","domain":"development","workflow":"core.control_flow.run_merge_sort.merge_sort","value":"foo"}
Writing the execution cluster label to a file. If there are no execution cluster label, command would return an error.
Here the command gets execution cluster label and writes the config file to ecl.yaml
Writes the execution cluster label to a file. If there is no execution cluster label, command throws an error.
Here, the command gets the execution cluster label and writes the config file to ecl.yaml file.
eg: content of ecl.yaml
::
Expand Down
20 changes: 9 additions & 11 deletions flytectl/cmd/get/matchable_execution_queue_attribute.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,33 @@ import (
const (
executionQueueAttributesShort = "Gets matchable resources of execution queue attributes"
executionQueueAttributesLong = `
Retrieves execution queue attributes for given project and domain combination or additionally with workflow name.
Retrieves execution queue attribute for project and domain
Here the command get execution queue attributes for project flytectldemo and development domain.
Retrieve the execution queue attribute for the given project and domain.
Here, the command gets execution queue attributes for the project flytectldemo and development domain.
::
flytectl get execution-queue-attribute -p flytectldemo -d development
eg : output from the command
e.g. : output from the command
.. code-block:: json
{"project":"flytectldemo","domain":"development","tags":["foo", "bar"]}
Retrieves execution queue attribute for project and domain and workflow
Here the command get execution queue attributes for project flytectldemo, development domain and workflow core.control_flow.run_merge_sort.merge_sort
Retrieve the execution queue attribute for the given project, domain, and workflow.
Here, the command gets execution queue attributes for the project flytectldemo, development domain, and workflow 'core.control_flow.run_merge_sort.merge_sort'.
::
flytectl get execution-queue-attribute -p flytectldemo -d development core.control_flow.run_merge_sort.merge_sort
eg : output from the command
e.g. : output from the command
.. code-block:: json
{"project":"flytectldemo","domain":"development","workflow":"core.control_flow.run_merge_sort.merge_sort","tags":["foo", "bar"]}
Writing the execution queue attribute to a file. If there are no execution queue attributes, command would return an error.
Here the command gets execution queue attributes and writes the config file to era.yaml
eg: content of era.yaml
Write the execution queue attribute to a file. If there are no execution queue attributes, the command throws an error.
Here, the command gets the execution queue attributes and writes the config to era.yaml file.
e.g. : content of era.yaml
::
Expand Down
16 changes: 7 additions & 9 deletions flytectl/cmd/get/matchable_plugin_override.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@ import (
const (
pluginOverrideShort = "Gets matchable resources of plugin override"
pluginOverrideLong = `
Retrieves plugin overrides for given project and domain combination or additionally with workflow name.
Retrieves plugin overrides for project and domain
Here the command get plugin override for project flytectldemo and development domain.
Retrieve the plugin overrides for the given project and domain.
Here, the command gets the plugin overrides for the project flytectldemo and development domain.
::
flytectl get plugin-override -p flytectldemo -d development
eg : output from the command
e.g. : output from the command
.. code-block:: json
Expand All @@ -36,14 +34,14 @@ eg : output from the command
}]
}
Retrieves plugin override for project and domain and workflow
Here the command get plugin override for project flytectldemo ,development domain and workflow core.control_flow.run_merge_sort.merge_sort
Retrieves the plugin overrides for project, domain and workflow
Here the command gets the plugin overrides for project flytectldemo, development domain and workflow core.control_flow.run_merge_sort.merge_sort
::
flytectl get plugin-override -p flytectldemo -d development core.control_flow.run_merge_sort.merge_sort
eg : output from the command
e.g. : output from the command
.. code-block:: json
Expand All @@ -58,7 +56,7 @@ eg : output from the command
}]
}
Writing the plugin override to a file. If there are no plugin overrides, command would return an error.
Writing the plugin overrides to a file. If there are no plugin overrides, command would return an error.
Here the command gets plugin overrides and writes the config file to po.yaml
eg: content of po.yaml
Expand Down
18 changes: 8 additions & 10 deletions flytectl/cmd/get/matchable_task_resource_attribute.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,36 +13,34 @@ import (
const (
taskResourceAttributesShort = "Gets matchable resources of task attributes"
taskResourceAttributesLong = `
Retrieves task resource attributes for given project,domain combination or additionally with workflow name.
Retrieves task resource attribute for project and domain
Here the command get task resource attributes for project flytectldemo and development domain.
Retrieve task resource attributes for the given project and domain.
Here, the command gets the task resource attributes for the project flytectldemo and development domain.
::
flytectl get task-resource-attribute -p flytectldemo -d development
eg : output from the command
e.g. : output from the command
.. code-block:: json
{"project":"flytectldemo","domain":"development","workflow":"","defaults":{"cpu":"1","memory":"150Mi"},"limits":{"cpu":"2","memory":"450Mi"}}
Retrieves task resource attribute for project and domain and workflow
Here the command get task resource attributes for project flytectldemo, development domain and workflow core.control_flow.run_merge_sort.merge_sort
Retrieve task resource attributes for the given project, domain, and workflow.
Here, the command gets task resource attributes for the project flytectldemo, development domain, and workflow 'core.control_flow.run_merge_sort.merge_sort'.
::
flytectl get task-resource-attribute -p flytectldemo -d development core.control_flow.run_merge_sort.merge_sort
eg : output from the command
e.g. : output from the command
.. code-block:: json
{"project":"flytectldemo","domain":"development","workflow":"core.control_flow.run_merge_sort.merge_sort","defaults":{"cpu":"1","memory":"150Mi"},"limits":{"cpu":"2","memory":"450Mi"}}
Writing the task resource attribute to a file. If there are no task resource attributes a file would be written with basic data populated.
Write the task resource attributes to a file. If there are no task resource attributes, a file would be populated with the basic data.
Here the command gets task resource attributes and writes the config file to tra.yaml
eg: content of tra.yaml
e.g. : content of tra.yaml
::
Expand Down
Loading

0 comments on commit 4752206

Please sign in to comment.