Git distributor support for ninja-bear
Project description
ninja-bear-distributor-git
This ninja-bear plugin adds the distributor support for Git.
distributors: # Specifies which distributor plugins to load.
# -------------------------------------------------------------------------
# Property description for ninja-bear-distributor-git.
#
# distributor (required): ninja-bear-distributor-git or git
# as (required): Specifies how the distributor will be referenced
# at the language level (in this case git).
# url (required): Specifies the repository's URL.
# path (optional): Specifies the path within the repository. If no
# Path is provided, the config is added to the
# root directory.
# user (optional): Specifies the Git user. If the user attribute,
# but no value is given, the user is prompted to
# provide the user attribute at runtime.
# password (optional): Specifies the Git password. If the password,
# attribute but no value is given, the user is
# prompted to provide the password attribute at
# runtime.
# branch (optional): Specifies with which branch to work with.
# message (optional): Specifies the commit message. If no message got
# provided, the user will be prompted to provide
# a commit message at runtime.
# ignore (optional): If true, the section gets ignored.
# -------------------------------------------------------------------------
- distributor: ninja-bear-distributor-git
as: git
url: https://github.com/exampleuser/example-repo.git
path: config
user:
password:
branch: main
message: Update config
languages:
- language: ninja-bear-language-examplescript
distributors: # Specifies which distributor plugins to use for the language.
- git
properties:
- type: bool
name: myBoolean
value: true
- type: int
name: myInteger
value: 142
- type: float
name: myFloat
value: 322f # Float with float specifier. However, an additional specifier (f) is not required and will be trimmed.
- type: float
name: myCombinedFloat
value: ${myInteger} * ${myFloat} # Number and boolean combinations get evaluated during the dump process.
- type: double
name: myDouble
value: 233.9
- type: string
name: myString
value: Hello World
hidden: true # If a property should act as a helper but should not be written to the generated file, it must be marked as 'hidden'.
- type: regex
name: myRegex
value: Test Reg(E|e)x
comment: Just another RegEx. # Variables can be described using the comment property.
- type: string
name: mySubstitutedString
value: Sometimes I just want to scream ${myString}! # To use the value of another property, simply use its name with ${}. E.g., ${myString}.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ninja_bear_distributor_git-0.1.1.tar.gz
.
File metadata
- Download URL: ninja_bear_distributor_git-0.1.1.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 041b4625945c394effb928169510aae944e82bc140463eafeba38c5726d80b4c |
|
MD5 | 74e84e09d22c0b1a09afd2398726e356 |
|
BLAKE2b-256 | 86b447289fcb7ecaeb85845036e02768e7b1d2da79d8f1c363e24071c97a4fed |
File details
Details for the file ninja_bear_distributor_git-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: ninja_bear_distributor_git-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68c9cdfc3f97d922d033eafd0f66b2e082a689e1aab651c6692de8881217ad9d |
|
MD5 | 7e528e283a2ed11d57e5a90d7dc7664d |
|
BLAKE2b-256 | f58af841c5ba6a602228fa10f464ed42e054aa79c3806cd1ec731750394ea023 |