def build
      raise Cliqr::Error::ConfigNotFound, 'a valid config should be defined' if @config.nil?
      unless @config.valid?
        raise Cliqr::Error::ValidationError, \
              "invalid Cliqr interface configuration - [#{@config.errors}]"
      end

      Interface.new(@config)
    end
def build
      raise Cliqr::Error::ConfigNotFound, 'a valid config should be defined' if @config.nil?
      unless @config.valid?
        raise Cliqr::Error::ValidationError, \
              "invalid Cliqr interface configuration - [#{@config.errors}]"
      end

      Interface.new(@config)
    end
Start building a command line interface

 @param [Cliqr::CLI::Config] config the configuration options for the
 interface (validated using CLI::Validator)

 @return [Cliqr::CLI::ConfigBuilder]
 Validate and build a cli interface based on the configuration options

 @return [Cliqr::CLI::Interface]

 @throws [Cliqr::Error::ConfigNotFound] if a config is <tt>nil</tt>
 @throws [Cliqr::Error::ValidationError] if the validation for config fails