Shell language support for ninja-bear
Project description
ninja-bear-language-shell
This ninja-bear plugin adds support for Unix shell scripts. To use the constants in your code, use the source-command (e.g. source test_config.sh).
languages:
# -------------------------------------------------------------------------
# Property description for ninja-bear-language-shell.
#
# language (required): ninja-bear-language-shell
# file_naming (optional): Specifies the file naming convention (snake |
# screaming-snake | camel | pascal | kebap).
# Defaults to the file-name without the extension.
# property_naming (optional): Specifies the property naming convention (snake |
# screaming-snake | camel | pascal | kebap).
# type_naming (optional): Specifies the naming convention for the generated
# type (snake | screaming-snake | camel | pascal |
# kebap). The default value is language specific.
# indent (optional): Specifies the amount of spaces before each
# property. Defaults to 4.
# transformers (optional): Specifies a list of transformers (alias) to use.
# distributors (optional): Specifies a list of distributors (alias) to use.
# ignore (optional): If true, the section gets ignored.
# -------------------------------------------------------------------------
- language: ninja-bear-language-shell
file_naming: snake
property_naming: screaming-snake
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_language_shell-0.1.0.tar.gz
.
File metadata
- Download URL: ninja_bear_language_shell-0.1.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af6f8ff12b1685c343345d5e5a097d1a073f226e17545326fe834bde8fc4152c |
|
MD5 | 7f445525c645dc61feea4b0b2d8ded7b |
|
BLAKE2b-256 | 48884e1ed0c5bcfd426ccb456fe50c13e533431f2fd3d16df4bc901413257aa2 |
File details
Details for the file ninja_bear_language_shell-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: ninja_bear_language_shell-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.5 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 | 90a89ed83dd9a4248bd25adc7c65e5e8abf49e112fc6f1e850f1d3a290634316 |
|
MD5 | df8635e594e14bb3f923a0a10a126132 |
|
BLAKE2b-256 | e2c86001cefd5a8beea1c1d6386a872cf2e7d7b6f3530cc6a1daba4f0673fa14 |