module Swa
  module CLI

    module ItemBehaviour

      def self.included(target)

        target.default_subcommand = "summary"

        target.subcommand ["summary", "s"], "One-line summary" do
          def execute
            puts item.summary
          end
        end

        target.subcommand ["data", "d"], "Full details" do

          parameter "[QUERY]", "JMESPath expression"

          def execute
            display_data(item.data, query)
          end

        end

      end

    end

  end
end

module Swa
  module CLI

    module ItemBehaviour

      def self.included(target)

        target.subcommand ["summary", "s"], "One-line summary" do
          def execute
            puts item.summary
          end
        end

        target.subcommand ["data", "d"], "Full details" do

          parameter "[QUERY]", "JMESPath expression"

          def execute
            display_data(item.data, query)
          end

        end

      end

    end

  end
end

Remove default command for individual items.
Remove default command for individual items.
