Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gfldex/perl6-git-config
Read gitconfig and return a Hash of Hash.
https://github.com/gfldex/perl6-git-config
Last synced: 13 days ago
JSON representation
Read gitconfig and return a Hash of Hash.
- Host: GitHub
- URL: https://github.com/gfldex/perl6-git-config
- Owner: gfldex
- License: artistic-2.0
- Created: 2017-01-22T10:55:12.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-07-14T21:01:10.000Z (over 3 years ago)
- Last Synced: 2024-11-06T05:44:12.659Z (2 months ago)
- Language: Raku
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Git::Config
[![Build Status](https://travis-ci.org/gfldex/perl6-git-config.svg?branch=master)](https://travis-ci.org/gfldex/perl6-git-config)Read gitconfig and return a Hash of Hash.
# SYNOPSIS
use Git::Config;
my $git-user = git-config;
my $remote-repo = git-config('.git/config'){'remote "origin"'};for git-config().seach-path -> {
say "looking for a git config in " ~ .Str;
}say "found a git config at " ~ git-config().path;
# Subs
sub git-config(IO::Path $file? --> Hash)
The returned Hash got an anonymous role mixed in providing the method `path`
pointing to the location of the git config file that was read. The method
`search-path` that is returning a list of paths, containing the paths a git
config file was searched in.# Grammars
grammar Config