Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add egctl edit, egctl logs, update egctl create cmd #1067

Merged
merged 15 commits into from
Aug 31, 2023
Prev Previous commit
update egctl edit example
  • Loading branch information
suchen-sci committed Aug 30, 2023
commit b38fc6b59f895c769dccb36e3713ac77695443cf
1 change: 1 addition & 0 deletions cmd/client/commandv2/edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import (
func EditCmd() *cobra.Command {
examples := []general.Example{
{Desc: "Edit a resource with name", Command: "egctl edit <resource> <name>"},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we specify editor like vim, nano.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, in egctl-cheat-sheet.md, mentioned use of env variable of EGCTL_EDITOR to change editor. I will add an example about that in examples.

{Desc: "Edit a resource with nano", Command: "env EGCTL_EDITOR=nano egctl edit <resource> <name>"},
{Desc: "Edit a httpserver with name", Command: "egctl edit httpserver httpserver-demo"},
{Desc: "Edit all custom data with kind name", Command: "egctl edit customdata kind1"},
{Desc: "Edit custom data with kind name and id name", Command: "egctl edit customdata kind1 data1"},
Expand Down
Loading