Skip to content

Commit cd5c1da

Browse files
committed
massive config refactoring to use a custom configobj module
1 parent 3bb24cb commit cd5c1da

137 files changed

Lines changed: 3029 additions & 631 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

config/aliases

Lines changed: 0 additions & 33 deletions
This file was deleted.

config/bite.conf

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,44 @@
33
# This file consists of sections which define parameters for each
44
# targeted bug, issue, or ticket tracker.
55
#
6-
# Each section begins with a connection name in square brackets. This is the
7-
# name that should be used as an argument for the --connection parameter.
6+
# Each section begins with a connection header. This is the name that should be
7+
# used as an argument for the --connection parameter.
88
#
99
# The lines following the connection header for each section consists of lines
10-
# in the form: "key: value" which are used as parameters for the related
10+
# in the form: "key = value" which are used as parameters for the related
1111
# connection.
12-
#
13-
# Note that the special section "DEFAULT" defines default options used for
14-
# all connections.
1512

16-
[DEFAULT]
17-
connection: gentoo
13+
connection = gentoo
14+
15+
[alias]
16+
# command shortcuts
17+
s = search
18+
g = get
19+
a = attachments
20+
m = modify
21+
c = create
22+
at = attach
23+
24+
# search for items assigned to the configured user
25+
me = search -a %{CONFIG:user}
26+
27+
# meta alias takes a function as an argument and calls function for all other input
28+
loop = !loop() { for i in "${@:2}"; do $1 $i; done }; loop
29+
30+
# iterate over whitespace-separated values passed as the second argument
31+
sloop = !sloop() { for i in $2; do $1 $i ${@:3}; done }; sloop
32+
33+
# iterate over comma-separated values passed as the second argument
34+
cloop = !cloop() { for i in $(echo $2 | tr "," " "); do $1 $i ${@:3}; done }; cloop
35+
36+
# aliases for all bugzilla services
37+
[BUGZILLA]
38+
[[alias]]
39+
# output list of bug dependencies by ID
40+
depends = !f() { bite -q search --id $1 --fields depends_on --output -; }; f
41+
# output list of bug blockers by ID
42+
blocks = !f() { bite -q search --id $1 --fields blocks --output -; }; f
43+
# output list of open bug dependencies
44+
show-depends = !f() { %{depends} $1 | bite -q search --id - ${@:2}; }; %{cloop} f
45+
# output list of open bug blockers
46+
show-blocks = !f() { %{blocks} $1 | bite -q search --id - ${@:2}; }; %{cloop} f

requirements/dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
cython
22
https://github.com/pkgcore/snakeoil/archive/py3.tar.gz#egg=snakeoil
33
requests>=2
4+
configobj
45
multidict
56
chardet
67
python-dateutil>=2.1

requirements/install.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
snakeoil>=0.8.0
22
requests>=2
3+
configobj
34
multidict
45
chardet
56
python-dateutil>=2.1

services/7zip

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[7zip]
2+
service = allura
3+
base = https://sourceforge.net/p/sevenzip/bugs/

services/allura

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[allura]
2+
service = allura
3+
base = https://forge-allura.apache.org/p/allura/tickets/

services/allura/7zip

Lines changed: 0 additions & 3 deletions
This file was deleted.

services/allura/allura

Lines changed: 0 additions & 3 deletions
This file was deleted.

services/allura/gnuplot

Lines changed: 0 additions & 3 deletions
This file was deleted.

services/allura/lilypond

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)