Skip to content

Commit

Permalink
fix a typo in doc for rad resource delete (#8723)
Browse files Browse the repository at this point in the history
# Description

fix typo

## Type of change

- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).
  • Loading branch information
nithyatsu authored Mar 3, 2025
1 parent bbb1d24 commit d247367
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
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

0 comments on commit d247367

Please sign in to comment.