Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-4572

[CLI] Kubernetes mode - delete should fail without subcommand

    XMLWordPrintable

Details

    • Bug
    • Status: Verified (View Workflow)
    • Minor
    • Resolution: Done
    • RHDG 8.2 CD
    • RHDG 8.3 CD
    • CLI
    • None

    Description

      If user executes `oc infinispan delete` nothing happens. Since it isn't technically a valid command as it's missing subcommand it should fail with corresponding message. Commands that do not print output upon execution are generally considered as successful.

      The help for delete command should also make it clear that subcommand is required.

      $ ./oc infinispan delete
      $ ./oc infinispan delete -h
      Usage: kube delete [<options>]
      Deletes a resource
      
      Options:
        -h, --help
      
      delete commands:
          cluster  Deletes a cluster
      

      Attachments

        Activity

          People

            ttarrant@redhat.com Tristan Tarrant
            pdrobek@redhat.com Pavel Drobek
            Pavel Drobek Pavel Drobek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: