From f4d92bf6686072b0889e9843cf55ac8d0ad1a59a Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Mon, 7 Oct 2013 14:54:31 +0200 Subject: Add the showconf command, to show repos configuration in yaml --- NEWS | 1 + README | 6 ++++-- mgagit | 16 ++++++++++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 2d0d3ec..552d02a 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,6 @@ - soft_repo.gl: Put maintainer nick in square brackets - allow non-ldap group definitions +- add the showconf command, to show repos configuration in yaml Version 0.10 diff --git a/README b/README index 13c0368..34accb4 100644 --- a/README +++ b/README @@ -13,8 +13,10 @@ And generate the corresponding gitolite configuration and keys directory. Available commands ------------------ -- glconf : Print gitolite configuration -- glrun : Update gitolite configuration +- glconf : Print gitolite configuration +- glrun : Update gitolite configuration +- showconf : Display the repos configuration in YAML. This is mainly + useful for debugging. Configuration diff --git a/mgagit b/mgagit index 7cb960c..a9387ae 100755 --- a/mgagit +++ b/mgagit @@ -2,6 +2,7 @@ use strict; use MGA::Git; +use YAML; #use Data::Dump qw/dd/; my %actions = ( @@ -31,6 +32,15 @@ END $0 usage [action] Show action usage +END + }, + showconf => { + run => \&showconf, + descr => 'Show YAML mgagit configuration', + usage => <