All Projects → pixelb → Crudini

pixelb / Crudini

Licence: gpl-2.0
A utility for manipulating ini files

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Crudini

Ini Parser
Read/Write an INI file the easy way!
Stars: ✭ 643 (+120.21%)
Mutual labels:  cli, config, ini
Jquery.terminal
jQuery Terminal Emulator - JavaScript library for creating web-based terminals with custom commands
Stars: ✭ 2,623 (+798.29%)
Mutual labels:  cli, command
Nestjs Console
A nestjs module that provide a cli to your application.
Stars: ✭ 284 (-2.74%)
Mutual labels:  cli, command
plaster
Application config settings abstraction layer.
Stars: ✭ 19 (-93.49%)
Mutual labels:  config, ini
Cbox
convert any python function to unix-style command
Stars: ✭ 154 (-47.26%)
Mutual labels:  cli, command
You Dont Need Gui
Stop relying on GUI; CLI **ROCKS**
Stars: ✭ 4,766 (+1532.19%)
Mutual labels:  cli, command
ini
📝 Go INI config management. support multi file load, data override merge. parse ENV variable, parse variable reference. Dotenv file parse and loader. INI配置读取管理,支持多文件加载,数据覆盖合并, 解析ENV变量, 解析变量引用。DotEnv 解析加载
Stars: ✭ 72 (-75.34%)
Mutual labels:  config, ini
Sywac
🚫 🐭 Asynchronous, single package CLI framework for Node
Stars: ✭ 109 (-62.67%)
Mutual labels:  cli, command
libconfigini
Configuration parser library in INI format
Stars: ✭ 32 (-89.04%)
Mutual labels:  config, ini
parse it
A python library for parsing multiple types of config files, envvars & command line arguments that takes the headache out of setting app configurations.
Stars: ✭ 86 (-70.55%)
Mutual labels:  config, ini
Slim-Config
A file configuration loader that supports PHP, INI, XML, JSON, and YML files for the Slim Framework. It internally uses https://github.com/hassankhan/config.
Stars: ✭ 28 (-90.41%)
Mutual labels:  config, ini
Hiboot
hiboot is a high performance web and cli application framework with dependency injection support
Stars: ✭ 150 (-48.63%)
Mutual labels:  cli, command
Simplecli
Command Line Interface Library for Arduino
Stars: ✭ 135 (-53.77%)
Mutual labels:  cli, command
Webpack Command
[DEPRECATED] Lightweight, modular, and opinionated webpack CLI that provides a superior experience
Stars: ✭ 218 (-25.34%)
Mutual labels:  cli, command
Typin
Declarative framework for interactive CLI applications
Stars: ✭ 126 (-56.85%)
Mutual labels:  cli, command
Serve
a static http server anywhere you need one.
Stars: ✭ 233 (-20.21%)
Mutual labels:  cli, command
config-parser
A slim, fully managed C# library for reading/writing .ini, .conf, .cfg etc configuration files.
Stars: ✭ 67 (-77.05%)
Mutual labels:  config, ini
Dotfiles
My personal collection of configuration files.
Stars: ✭ 105 (-64.04%)
Mutual labels:  cli, config
Simple Console
Add an elegant command-line interface to any page
Stars: ✭ 107 (-63.36%)
Mutual labels:  cli, command
libconfini
Yet another INI parser
Stars: ✭ 106 (-63.7%)
Mutual labels:  config, ini

crudini - A utility for manipulating ini files

Usage: crudini --set [OPTION]... config_file section [param] [value] or: crudini --get [OPTION]... config_file [section] [param] or: crudini --del [OPTION]... config_file section [param] [list value] or: crudini --merge [OPTION]... config_file [section]

SECTION can be empty ('') or 'DEFAULT' in which case, params not in a section, i.e. global parameters are operated on. If 'DEFAULT' is used with --set, an explicit [DEFAULT] section is added.

Options:

--existing[=WHAT] For --set, --del and --merge, fail if item is missing, where WHAT is 'file', 'section', or 'param', or if not specified; all specified items. --format=FMT For --get, select the output FMT. Formats are sh,ini,lines --inplace Lock and write files in place. This is not atomic but has less restrictions than the default replacement method. --list For --set and --del, update a list (set) of values --list-sep=STR Delimit list values with "STR" instead of " ," --output=FILE Write output to FILE instead. '-' means stdout --verbose Indicate on stderr if changes were made --help Write this help to stdout --version Write version to stdout

Examples:

Add/Update a var

crudini --set config_file section parameter value

Add/Update a var in the root or global area.

I.e. that's not under a [section].

crudini --set config_file '' parameter value

Update an existing var

crudini --set --existing config_file section parameter value

Add/Append a value to a space or comma separated list

crudini --set --list config_file section parameter a_value

Delete a var

crudini --del config_file section parameter

Delete a section

crudini --del config_file section

output a value

crudini --get config_file section parameter

output a global value not in a section

crudini --get config_file '' parameter

output a section

crudini --get config_file section

output a section, parseable by shell

eval $(crudini --get --format=sh config_file section)

update an ini file from shell variable(s)

echo name="$name" | crudini --merge config_file section

merge an ini file from another ini

crudini --merge config_file < another.ini

compare two ini files using standard UNIX text processing

diff <(crudini --get --format=lines file1.ini|sort)
<(crudini --get --format=lines file2.ini|sort)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].