@@ -20,13 +20,13 @@ func Commands(con *core.Console) []*cobra.Command {
2020 Args : cobra .MaximumNArgs (1 ),
2121 Example : `~~~
2222// Register a TCP pipeline with the default settings
23- tcp --listener tcp_default
23+ tcp --listener listener
2424
2525// Register a TCP pipeline with a custom name, host, and port
26- tcp --name tcp_test --listener tcp_default --host 192.168.0.43 --port 5003
26+ tcp --name tcp_test --listener listener --host 192.168.0.43 --port 5003
2727
2828// Register a TCP pipeline with TLS enabled and specify certificate and key paths
29- tcp --listener tcp_default --tls --cert_path /path/to/cert --key_path /path/to/key
29+ tcp --listener listener --tls --cert_path /path/to/cert --key_path /path/to/key
3030~~~` ,
3131 }
3232 common .BindFlag (tcpCmd , common .PipelineFlagSet , common .TlsCertFlagSet , common .SecureFlagSet , common .EncryptionFlagSet )
@@ -53,13 +53,13 @@ tcp --listener tcp_default --tls --cert_path /path/to/cert --key_path /path/to/k
5353 Args : cobra .MaximumNArgs (1 ),
5454 Example : `~~~
5555// Register an HTTP pipeline with the default settings
56- http --listener http_default
56+ http --listener listener
5757
5858// Register an HTTP pipeline with custom headers and error page
59- http --name http_test --listener http_default --host 192.168.0.43 --port 8080 --headers "Content-Type=text/html" --error-page /path/to/error.html
59+ http --name http_test --listener listener --host 192.168.0.43 --port 8080 --headers "Content-Type=text/html" --error-page /path/to/error.html
6060
6161// Register an HTTP pipeline with TLS enabled
62- http --listener http_default --tls --cert_path /path/to/cert --key_path /path/to/key
62+ http --listener listener --tls --cert_path /path/to/cert --key_path /path/to/key
6363~~~` ,
6464 }
6565
@@ -95,7 +95,7 @@ http --listener http_default --tls --cert_path /path/to/cert --key_path /path/to
9595 Example : `
9696new bind pipeline
9797~~~
98- bind listener
98+ bind --listener listener
9999~~~
100100` ,
101101 }
0 commit comments