# File lib/apipie/client/generator.rb, line 46
      def generate_cli
        full_name = "#{name}#{suffix}"
        template("README.tt", "README")
        template("Gemfile.tt", "Gemfile")
        template("Rakefile.tt", "Rakefile")
        template("a_name.gemspec.tt", "#{full_name}.gemspec")
        template("lib/a_name.rb.tt", "lib/#{full_name}.rb")
        template("lib/a_name/version.rb.tt", "lib/#{full_name}/version.rb")
        create_file "lib/#{full_name}/documentation.json", JSON.dump(Apipie.to_json)
        copy_file "lib/a_name/config.yml", "lib/#{full_name}/config.yml"
        if all?
          template("bin/bin.rb.tt", "bin/#{full_name}")
          chmod("bin/#{full_name}", 0755)
        end
        doc[:resources].each do |key, resource|
          @resource_key, @resource = key, resource
          if all?
            template("lib/a_name/commands/cli.rb.tt", "lib/#{full_name}/commands/#{resource_name}.thor")
          end
          template("lib/a_name/resources/resource.rb.tt", "lib/#{full_name}/resources/#{resource_name}.rb")
        end
      end