<commit_before>#
# Author:: 
# Copyright:: 
#

require 'chef/knife/cloud/server/list_command'
require 'chef/knife/vchs_helpers'
require 'chef/knife/cloud/vchs_service_options'
require 'chef/knife/cloud/server/list_options'

class Chef
  class Knife
    class Cloud
      class VchsServerList < ServerListCommand
        include VchsHelpers
        include VchsServiceOptions
        include ServerListOptions

        banner "knife vchs server list (options)"

        def before_exec_command
          # TODO - Update the columns info with the keys and callbacks required as per fog object returned for your cloud. Framework looks for 'key' on your server object hash returned by fog. If you need the values to be formatted or if your value is another object that needs to be looked up use value_callback.

          @columns_with_info = [
            {:label => 'Instance ID', :key => 'id'},
            {:label => 'Name', :key => 'name'},
            {:label => 'Public IP', :key => 'addresses', :value_callback => method(:your_callback)},
            #...
          ]
          super
        end

        # TODO - callback example, this gets a object/value returned by server.addresses
        def your_callback (addresses)
          #...
        end

      end
    end
  end
end
<commit_msg>server_list is vm_list<commit_after>#
# Author::
# Copyright::
#

require 'chef/knife/vchs_vm_list'

class Chef
  class Knife
    class Cloud
      class VchsServerList < VchsVmList

        banner "knife vchs server list (options)"

      end
    end
  end
end

{'fraction_non_alphanumeric': 0.08472400513478819, 'fraction_numerical': 0.0, 'mean_word_length': 2.5191873589164784, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6181983', 'n_tokens_mistral': 456, 'n_tokens_neox': 446, 'n_words': 151}