kdlc

command module
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2026 License: BSD-3-Clause Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

kdlc

kdlc is a compressor for KDL 2.0.0. It does not support KDL v1 in any way.

Description

This is a simple CLI application built on top of my library - kdly. Parsing and compressing is done by the library. This project is responsible for the command-line interface. If you want to file an issue (bug report, feature request, etc.), then please check if this should go to kdly, and what version of kdly is used (kdlc -V).

For the compressing format, please refer to kdly. To say it briefly, the output format is a minimal representation of any valid KDL document: all whitespace and comments are removed and everything is kept in a single line.

Installation

For installation steps, please follow the same steps as in kdlf, but use a different link. For example, for go install:

go install codeberg.org/shimeoki/kdlc@latest

And for nix run:

nix run git+https://codeberg.org/shimeoki/kdlc?shallow=1

Interface

kdlc follows POSIX Utility Conventions for it's CLI via getopt library. The most important aspects are that all options are a single letter and they should precede the operands.

kdlc is a compressor for KDL v2.

If no files are given, then kdlc reads for a single document from stdin.
Otherwise the files are walked in order. The result is written to stdout, and
every document (including the last one) has a newline at the end.

Usage: kdlc [-hV] [files...]
 -h    print help and exit
 -V    print version and exit

Credits

Initial idea is from a discussion in the main KDL repository.

License

Source code in this project is distributed under BSD-3-Clause license. Both dependencies are distributed under their own copies of the same BSD-3-Clause license.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL