TransifexRunnerAliases.

TransifexInit(ICakeContext, TransifexInitSettings) Method

Summary

This command initializes the current repository with a default configuration file, and optionally the user configuration file with either a Username + Password combination or an API token.
Assembly
Cake.Transifex.dll
Namespace
Cake.Transifex
Containing Type
TransifexRunnerAliases

Syntax

public static void TransifexInit(this ICakeContext context, TransifexInitSettings settings)

Examples

Task("Transifex-Init")
    .Does(() =>
{
    var settings = new TransifexInitSettings
    {
        Username = "MY-AWESOME-USERNAME",
        Password = "MY-SUPER-SECRET-PASSWORD"
    };
    TransifexInit(settings);
};
Task("Transifex-Init")
    .Does(() =>
{
    var settings = new TransifexInitSettings
    {
        Token = "API-TOKEN-HERE"
    };
    TransifexInit(settings);
};

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The cake context
settings TransifexInitSettings The settings to use when initializing repository.

Return Value

Type Description
void