Coder Social home page Coder Social logo

cft's Introduction

CFT

.net config file transformations tool

Usage

    # transform using a configuration name
    cft transform /path=. /configuration=Production

    # cascade transformation are supported (will apply Production, and then Production-Amazon if found)
    cft transform /path=. /configuration=Production-Amazon

    # dry run, doesn't touch files and throws an error if a file would be changed
    cft transform /path=. /configuration=Production /dry

    # get configuration name from different sources (priority is: parameter, file, env, default)
    cft transform /path=.  /configurationFile=configurationName.tmp /configurationEnv=CONFIGURATIONNAME /configurationDefault=Local

    # Run without params to see help
    cft

This tool will find all *.default.config files recursively and apply corresponding transformations when found.

Tokens

These tokens will be replaced at the end of transformation:

  • $configurationName$: the configuration name used to transform
  • $env:VARIABLE_NAME$: an environment variable

Nuget

Install as a nuget package: https://nuget.org/packages/cft/

To run this tool on prebuild event or on post-deploy, you'll need to find /packages/cft.x.x.x.x/ path. To make that easy you can install NugetToolsHelper package

cft's People

Contributors

beneidel avatar eallegretta avatar pmmax avatar

Watchers

Brian McConnell avatar jose alvarez muguerza avatar James Cloos avatar Mariano Julio Vicario avatar Marco Pracucci avatar  avatar BeaconLive Git avatar  avatar  avatar  avatar Ivan Ristich avatar James Toothman 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.