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

fix a typo in doc for rad resource delete #8723

Merged
merged 2 commits into from
Mar 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/rad/cmd/resourceExpose.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ This command is useful for testing resources that accept network traffic but are
Press CTRL+C to exit the command and terminate the tunnel.`,
Example: `# expose port 80 on the 'orders' resource of the 'icecream-store' application
# on local port 5000
rad resource expose --application icecream-store containers orders --port 5000 --remote-port 80`,
rad resource expose --application icecream-store Applications.Core/containers orders --port 5000 --remote-port 80`,
RunE: func(cmd *cobra.Command, args []string) error {
workspace, err := cli.RequireWorkspace(cmd, ConfigFromContext(cmd.Context()), DirectoryConfigFromContext(cmd.Context()))
if err != nil {
Expand Down
8 changes: 4 additions & 4 deletions cmd/rad/cmd/resourceLogs.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ This command allows you to access logs of a deployed application and output thos

Specify the '--follow' option to stream additional logs as they are emitted by the resource. When following, press CTRL+C to exit the command and terminate the stream.`,
Example: `# read logs from the 'webapp' resource of the current default app
rad resource logs containers webapp
rad resource logs Applications.Core/containers webapp

# read logs from the 'orders' resource of the 'icecream-store' application
rad resource logs containers orders --application icecream-store
rad resource logs Applications.Core/containers orders --application icecream-store

# stream logs from the 'orders' resource of the 'icecream-store' application
rad resource logs containers orders --application icecream-store --follow
rad resource logs Applications.Core/containers orders --application icecream-store --follow

# read logs from the 'daprd' sidecar container of the 'orders' resource of the 'icecream-store' application
rad resource logs containers orders --application icecream-store --container daprd`,
rad resource logs Applications.Core/containers orders --application icecream-store --container daprd`,
RunE: func(cmd *cobra.Command, args []string) error {
workspace, err := cli.RequireWorkspace(cmd, ConfigFromContext(cmd.Context()), DirectoryConfigFromContext(cmd.Context()))
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/cmd/resourcetype/delete/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func NewCommand(factory framework.Factory) (*cobra.Command, framework.Runner) {

cmd := &cobra.Command{
Use: "delete [resource type]",
Short: "Delete resource protypevider",
Short: "Delete resource type",
Long: `Delete resource type

Resource types are the entities that implement resource types such as 'Applications.Core/containers'. Each resource type can define multiple API versions, and each API version defines a schema that resource instances conform to. Resource providers can be created and deleted by users.
Expand Down
Loading