Skip to content

Commit de1579d

Browse files
maha-hajjaraulb
andauthored
add usage parameters (#2125)
* add usage parameters * delete prints * replace positional arguments placeholders --------- Co-authored-by: Raúl Barroso <[email protected]>
1 parent 432528b commit de1579d

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

Diff for: cmd/conduit/root/connectorplugins/describe.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (c *DescribeCommand) Output(output ecdysis.Output) {
4848
c.output = output
4949
}
5050

51-
func (c *DescribeCommand) Usage() string { return "describe" }
51+
func (c *DescribeCommand) Usage() string { return "describe CONNECTOR_PLUGIN_ID" }
5252

5353
func (c *DescribeCommand) Docs() ecdysis.Docs {
5454
return ecdysis.Docs{
@@ -80,7 +80,7 @@ func (c *DescribeCommand) ExecuteWithClient(ctx context.Context, client *api.Cli
8080
Name: c.args.connectorPluginID,
8181
})
8282
if err != nil {
83-
return cerrors.Errorf("failed to list connector plguin: %w", err)
83+
return cerrors.Errorf("failed to list connector plugin: %w", err)
8484
}
8585

8686
if len(resp.Plugins) == 0 {

Diff for: cmd/conduit/root/connectors/describe.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (c *DescribeCommand) Output(output ecdysis.Output) {
4848
c.output = output
4949
}
5050

51-
func (c *DescribeCommand) Usage() string { return "describe" }
51+
func (c *DescribeCommand) Usage() string { return "describe CONNECTOR_ID" }
5252

5353
func (c *DescribeCommand) Docs() ecdysis.Docs {
5454
return ecdysis.Docs{

Diff for: cmd/conduit/root/pipelines/describe.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func (c *DescribeCommand) Output(output ecdysis.Output) {
6060

6161
func (c *DescribeCommand) Aliases() []string { return []string{"desc"} }
6262

63-
func (c *DescribeCommand) Usage() string { return "describe" }
63+
func (c *DescribeCommand) Usage() string { return "describe PIPELINE_ID" }
6464

6565
func (c *DescribeCommand) Args(args []string) error {
6666
if len(args) == 0 {

Diff for: cmd/conduit/root/pipelines/init.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ func (c *InitCommand) Flags() []ecdysis.Flag {
7070
}
7171

7272
flags.SetDefault("pipelines.path", filepath.Join(currentPath, "./pipelines"))
73+
flags.SetDefault("source", "generator")
74+
flags.SetDefault("destination", "file")
7375
return flags
7476
}
7577

@@ -85,7 +87,7 @@ func (c *InitCommand) Args(args []string) error {
8587
return nil
8688
}
8789

88-
func (c *InitCommand) Usage() string { return "init" }
90+
func (c *InitCommand) Usage() string { return "init PIPELINE_NAME" }
8991

9092
func (c *InitCommand) Docs() ecdysis.Docs {
9193
return ecdysis.Docs{

Diff for: cmd/conduit/root/processorplugins/describe.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (c *DescribeCommand) Output(output ecdysis.Output) {
4848
c.output = output
4949
}
5050

51-
func (c *DescribeCommand) Usage() string { return "describe" }
51+
func (c *DescribeCommand) Usage() string { return "describe PROCESSOR_PLUGIN_ID" }
5252

5353
func (c *DescribeCommand) Docs() ecdysis.Docs {
5454
return ecdysis.Docs{

Diff for: cmd/conduit/root/processors/describe.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (c *DescribeCommand) Output(output ecdysis.Output) {
4848
c.output = output
4949
}
5050

51-
func (c *DescribeCommand) Usage() string { return "describe" }
51+
func (c *DescribeCommand) Usage() string { return "describe PROCESSOR_ID" }
5252

5353
func (c *DescribeCommand) Docs() ecdysis.Docs {
5454
return ecdysis.Docs{

0 commit comments

Comments
 (0)