module Idcf::Cli::Controller::Include::Command

command

Protected Instance Methods

convert_arg_json(*args) click to toggle source

convert arg json json string to Hash

@param args [Array] @return Array

# File lib/idcf/cli/controller/include/command.rb, line 18
def convert_arg_json(*args)
  result = []
  args.each do |v|
    begin
      result << JSON.parse(v, symbolize_names: false)
    rescue StandardError => _e
      result << v
    end
  end
  result
end