Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonathanstowe/ujumla
Read Apache/Config-General config files in Raku
https://github.com/jonathanstowe/ujumla
apache config config-general raku
Last synced: 25 days ago
JSON representation
Read Apache/Config-General config files in Raku
- Host: GitHub
- URL: https://github.com/jonathanstowe/ujumla
- Owner: jonathanstowe
- License: artistic-2.0
- Created: 2019-02-22T16:35:50.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-01T09:40:37.000Z (over 1 year ago)
- Last Synced: 2023-07-01T10:37:59.161Z (over 1 year ago)
- Topics: apache, config, config-general, raku
- Language: Raku
- Homepage:
- Size: 43.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
Awesome Lists containing this project
README
# Ujumla
Read Apache/Config-General config files in Raku
![Build Status](https://github.com/jonathanstowe/Ujumla/workflows/CI/badge.svg)
## Synopsis
```raku
use Ujumla;
my $config = Ujumla.new( config-text => q:to/EIEIO/);
# Some comment
name "something or other"section-name whatever
EIEIO
say $config.get-item('name'); # "something or other"
say $config.get-item('Section', 'section-name'); # "whatever"```
## Description
This module aims to be able to read those configuration files that can be read
by the Perl 5 module [Config::General](https://metacpan.org/release/Config-General)
which in itself supports a superset of the [Apache httpd configuration syntax](https://httpd.apache.org/docs/2.4/configuring.html#syntax).I haven't named it `Config::General` because I wouldn't want to take the name from someone who might
be able to do better and because I don't want to raise the expectation that this is a *port* of the Perl 5
module - the interface and options are likely to differ wildly from that module. It is instead named for
the first search result for *"Swahili for General"*.You can find the fuller documentation [here](Documentation.md).
## Installation
Assuming you have a working Rakudo compiler you should be able to install this with *zef* :
zef install Ujumla
# Or from a local clone
zef install .
## Support
If you have any suggestions, complaints or patches please direct them to [Github](https://github.com/jonathanstowe/Ujumla/issues)
The chances are that this won't parse every conceivable configuration file, so if you find something that
you think it should parse but doesn't a failing test case would be much appreciated.## Licence & Copyright
This is free software please see the [LICENCE](LICENCE) file.
© Jonathan Stowe 2020 - 2021