Coder Social home page Coder Social logo

isabella232 / cf-dotnet-sdk-builder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hpcloud/cf-dotnet-sdk-builder

0.0 0.0 0.0 417 KB

Ruby scripts that generate C# SDK classes based on Cloud Foundry documentation

Shell 3.69% Ruby 52.77% HTML 43.55%

cf-dotnet-sdk-builder's Introduction

CF SDK Builder

Running the SDK builder

Run the following (note that if you're generating csharp output, you can omit the language variable). After the docker run, you'll be dropped in a shell.

docker run -v ${PWD}:/root/cf-dotnet-sdk-builder -it helioncf/hcf-sdk-builder
language=csharp ./cf-doc-generation/update-code.sh

You'll find your output (on your dev box): ./Generated and tests

It's best to keep the container around - it runs a mysql server, and it also makes your dev cycle shorter, since you don't need to re-install gems every time you want to run update-code.sh. Installing gems takes a really long time ...

NOTE: the generation creates some junk in cloud_controller_ng. It's safe to ignore that.

Building the Docker image

docker build -t helioncf/hcf-sdk-builder .

If you need more rubies, add them to versions.txt.

Writing extra output languages

  1. Defining the new language: make a copy of the lib/languages/csharp directory
  2. Rename the csharp_types.rb and csharp.rb files
  3. Include your new language in:
  • bin/codegen: you need to require the files and modify parameter validation
  • lib/config.rb: mention it in the self.language function
  1. Update the type definitions, file extensions, etc. for your new language
  2. Run

Upgrading the target API version

TBD

cf-dotnet-sdk-builder's People

Contributors

calinmiclaushpe avatar carabasdaniel avatar florindragos avatar mihaibuzgau avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.