GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  ANYCONFIG_CLI (1)

NAME

anyconfig_cli - manual page for anyconfig_cli 0.0.3.11

CONTENTS

Synopsis
Options
Examples

SYNOPSIS

anyconfig_cli [Options...] CONF_PATH_OR_PATTERN_0 [CONF_PATH_OR_PATTERN_1 ..]

OPTIONS

--version
  show program’s version number and exit
-h, --help show this help message and exit
-L, --list List supported config types
-o OUTPUT, --output=OUTPUT
  Output file path
-I ITYPE, --itype=ITYPE
  Select type of Input config files from ini, json, xml, yaml [Automatically detected by file ext]
-O OTYPE, --otype=OTYPE
  Select type of Output config files from ini, json, xml, yaml [Automatically detected by file ext]
-M MERGE, --merge=MERGE
  Select strategy to merge multiple configs from replace, noreplace, merge_dicts, merge_dicts_and_lists [merge_dicts]
-A ARGS, --args=ARGS
  Argument configs to override
--atype=ATYPE
  Explicitly select type of argument to provide configs from ini, json, xml, yaml. If this option is not set, original parser is used: ’K:V’ will become {K: V}, ’K:V_0,V_1,..’ will become {K: [V_0, V_1, ...]}, and ’K_0:V_0;K_1:V_1’ will become {K_0: V_0, K_1: V_1} (where the tyep of K is str, type of V is one of Int, str, etc.
--get=GET
  Specify key path to get part of config, for example, if a config {’a’: {’b’: {’c’: 0, ’d’: 1}}} ’--get a.b.c’ gives 0 and ’--get a.b’ gives {’c’: 0, ’d’: 1}.
-s, --silent
  Silent or quiet mode
-q, --quiet
  Same as --silent option
-v, --verbose
  Verbose mode

EXAMPLES

List supported configuration types.

anyconfig_cli --list

Load a YAML config /etc/xyz/conf.d/a.conf and dump parsed result to stdout in JSON format by specifying input and output formats explicitly.

anyconfig_cli -I yaml -O json /etc/xyz/conf.d/a.conf

Similar to the previous example but inputs may be multiple files as the input is glob pattern.

anyconfig_cli -I yaml ’/etc/xyz/conf.d/*.conf’ -o xyz.conf --otype json

Similar to the previous example but configuration specified w/ -A (--args) option added.

anyconfig_cli ’/etc/xyz/conf.d/*.json’ -o xyz.yml --atype json -A ’{"obsoletes": "sysdata", "conflicts": "sysdata-old"}’

Same as the previous example.

anyconfig_cli ’/etc/xyz/conf.d/*.json’ -o xyz.yml -A obsoletes:sysdata;conflicts:sysdata-old

Load multiple JSON files with merge strategy ’noreplace’.

anyconfig_cli -O json ’/etc/foo.d/*.json’ -M noreplace

Search for    or go to Top of page |  Section 1 |  Main Index


anyconfig_cli 0.0.3.11 ANYCONFIG_CLI (1) May 2014

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.