Skip to content

Commit

Permalink
add fully qualified resource type examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nithyatsu committed Mar 3, 2025
1 parent 4f1cb7f commit dc4ccfd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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

0 comments on commit dc4ccfd

Please sign in to comment.