falkorlib 0.7.17 → 0.7.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/completion/_falkor +95 -3
- data/lib/falkorlib/bootstrap/link.rb +1 -2
- data/lib/falkorlib/cli.rb +4 -1
- data/lib/falkorlib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9ac26908e8ce646855d75dcb16306238e5d076a
|
4
|
+
data.tar.gz: 5bc7b5df10fa94899039eb60ec0734fc544a6872
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89e9b34f9c11dbfbeb6f4bcddd4a2cf85ae86038fc601f34f30c3c3822d258cd486c2fe0f907c0ffcdadd0af11691e1c4d026d159203b35915a42653ecf9691d
|
7
|
+
data.tar.gz: 0af69b51808b3a84741ebf1a6f00baefe038904b23920058253c2e89ac29fab3ce87d2a47ea2456f7a08b201cc103ae09036bf67ed02877f9ca4323cc13a023b
|
data/Gemfile.lock
CHANGED
data/completion/_falkor
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#compdef falkor
|
2
2
|
########################################################################################
|
3
3
|
# -*- mode:sh; -*-
|
4
|
-
# Time-stamp: <
|
4
|
+
# Time-stamp: <Thu 2018-11-08 23:50 svarrette>
|
5
5
|
#
|
6
6
|
# ZSH completion for [FalkorLib](https://github.com/Falkor/falkorlib)
|
7
7
|
#
|
@@ -40,9 +40,11 @@ _falkor()
|
|
40
40
|
_falkor_cmds=(
|
41
41
|
'commands:Lists all available commands'
|
42
42
|
'config:Print the current configuration of FalkorLib'
|
43
|
+
'gitcrypt:Initialize git-crypt for the current repository'
|
43
44
|
'help:Describe available commands or one specific command'
|
44
45
|
'init:Bootstrap a Git Repository the falkor way'
|
45
46
|
'link:Initialize a special symlink (.root, .makefile.d etc.)'
|
47
|
+
'make:Initialize one of Falkor Makefile, typically bring as a symlink'
|
46
48
|
'mkdocs:Initialize mkdocs for the current project'
|
47
49
|
'motd:bootstrap a Message of the Day (motd) file'
|
48
50
|
'new:Initialize the directory PATH with one of Falkors template(s)'
|
@@ -73,10 +75,14 @@ _falkor()
|
|
73
75
|
;;
|
74
76
|
(config)
|
75
77
|
__falkor_config && ret=0 ;;
|
78
|
+
(gitcrypt)
|
79
|
+
__falkor_gitcrypt && ret=0 ;;
|
76
80
|
(init)
|
77
81
|
__falkor_init && ret=0 ;;
|
78
82
|
(link)
|
79
83
|
__falkor_link && ret=0 ;;
|
84
|
+
(make)
|
85
|
+
__falkor_make && ret=0 ;;
|
80
86
|
(mkdocs)
|
81
87
|
__falkor_mkdocs && ret=0 ;;
|
82
88
|
(motd)
|
@@ -137,7 +143,7 @@ __falkor_new()
|
|
137
143
|
'--llncs[Use the Springer LNCS style]' \
|
138
144
|
'--acm[Use the ACM style]' && ret=0
|
139
145
|
;;
|
140
|
-
|
146
|
+
(letter)
|
141
147
|
_arguments -C \
|
142
148
|
'(-n --name)'{-n,--name}'[Name of the LaTeX project]' \
|
143
149
|
'(-d --dir)'{-d,--dir}':Project directory (relative to the git root directory):_directories' && ret=0
|
@@ -146,7 +152,24 @@ __falkor_new()
|
|
146
152
|
_arguments -C \
|
147
153
|
'(-l --license)'{-l,--licence}'[Open Source License to use within your project]:lic:(none Apache-2.0 BSD CC-by-nc-sa GPL-2.0 GPL-3.0 LGPL-2.1 LGPL-3.0 MIT)' \
|
148
154
|
'(-f --licensefile)'{-f,--licensefile}'[License Filename]:filename:(LICENSE)' && ret=0
|
149
|
-
|
155
|
+
;;
|
156
|
+
(make)
|
157
|
+
_arguments -C \
|
158
|
+
{--latex,-l}'[Makefile to compile LaTeX documents]' \
|
159
|
+
{--gnuplot,--plot,-p}'[Makefile to compile GnuPlot scripts]' \
|
160
|
+
{--generic,-g}'[Generic Makefile for sub directory]' \
|
161
|
+
{--images,-i,--img}'[Makefile to optimize images]' \
|
162
|
+
{--src,-s}'[Path to Falkor''s Makefile for latex_src]' && ret=0
|
163
|
+
;;
|
164
|
+
(readme)
|
165
|
+
_arguments -C \
|
166
|
+
'--make[Use a Makefile to pilot the repository actions]' \
|
167
|
+
'--rake[Use a Rakefile (and FalkorLib) to pilot the repository actions]' \
|
168
|
+
{--latex,-l}'[Describe a LaTeX project]' \
|
169
|
+
'--gem[Describe a Ruby gem project]' \
|
170
|
+
'--rvm[Describe a RVM-based Ruby project]' \
|
171
|
+
'-pyenv[Describe a pyenv-based Python project]' && ret=0
|
172
|
+
;;
|
150
173
|
(repo)
|
151
174
|
_arguments -C \
|
152
175
|
'(--no-git-flow)--git-flow[Bootstrap the repository with Git-flow]' \
|
@@ -168,6 +191,28 @@ __falkor_new()
|
|
168
191
|
_directories ;;
|
169
192
|
esac
|
170
193
|
;;
|
194
|
+
(rvm)
|
195
|
+
_arguments -C \
|
196
|
+
'--ruby[Ruby version to configure]:version' \
|
197
|
+
'--gemset[RVM gemset to configure for this directory]:gemset' \
|
198
|
+
'*: :->path' && ret=0
|
199
|
+
case "$state" in
|
200
|
+
(path)
|
201
|
+
_directories ;;
|
202
|
+
esac
|
203
|
+
;;
|
204
|
+
(slides)
|
205
|
+
_arguments -C \
|
206
|
+
{--name,-n}'[Name of the LaTeX project]:name' && ret=0
|
207
|
+
;;
|
208
|
+
(trash)
|
209
|
+
_arguments -C \
|
210
|
+
'*: :->path' && ret=0
|
211
|
+
case "$state" in
|
212
|
+
(path)
|
213
|
+
_directories ;;
|
214
|
+
esac
|
215
|
+
;;
|
171
216
|
esac
|
172
217
|
;;
|
173
218
|
esac
|
@@ -223,6 +268,41 @@ __falkor_link()
|
|
223
268
|
return ret
|
224
269
|
}
|
225
270
|
|
271
|
+
###############
|
272
|
+
__falkor_make()
|
273
|
+
{
|
274
|
+
local -a _falkor_make_cmds
|
275
|
+
_falkor_make_cmds=(
|
276
|
+
'generic:Symlink to Generic Makefile for sub directory'
|
277
|
+
'gnuplot:Symlink to a Makefile to compile GnuPlot scripts'
|
278
|
+
'help:Describe subcommands or one specific subcommand'
|
279
|
+
'latex:Symlink to a Makefile to compile LaTeX documents'
|
280
|
+
'repo:Create a root Makefile piloting repository operations'
|
281
|
+
)
|
282
|
+
|
283
|
+
local curcontext="$curcontext" state line
|
284
|
+
typeset -A opt_args
|
285
|
+
_arguments -C \
|
286
|
+
':command:->command' \
|
287
|
+
'*::options:->options'
|
288
|
+
|
289
|
+
case $state in
|
290
|
+
(command)
|
291
|
+
_describe -t commands "falkor make subcommand" _falkor_make_cmds
|
292
|
+
return
|
293
|
+
;;
|
294
|
+
(options)
|
295
|
+
case $line[1] in
|
296
|
+
(help)
|
297
|
+
_arguments \
|
298
|
+
":Falkor make commands:($(falkor make commands))" && ret=0
|
299
|
+
;;
|
300
|
+
esac
|
301
|
+
;;
|
302
|
+
esac
|
303
|
+
return ret
|
304
|
+
}
|
305
|
+
|
226
306
|
##################
|
227
307
|
__falkor_config() {
|
228
308
|
local curcontext=$curcontext state line ret=1
|
@@ -237,6 +317,18 @@ __falkor_config() {
|
|
237
317
|
}
|
238
318
|
|
239
319
|
|
320
|
+
##################
|
321
|
+
__falkor_gitcrypt() {
|
322
|
+
local curcontext=$curcontext state line ret=1
|
323
|
+
declare -A opt_args
|
324
|
+
|
325
|
+
_arguments -C \
|
326
|
+
{--owner,-o}'[Email or GPG ID of the owner of the git-crypt root vault]:owner:($(git config user.signingKey) $(git config user.email))' \
|
327
|
+
{--keys,-k}'[(space separated) List of GPG IDs allowed to unlock the repository]:keys' \
|
328
|
+
{-u,--ulhpc}'[Bootstrap git-crypt for the UL HPC team]' \
|
329
|
+
'*:directory:_files -/'
|
330
|
+
}
|
331
|
+
|
240
332
|
##################
|
241
333
|
__falkor_init() {
|
242
334
|
local curcontext=$curcontext state line ret=1
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
################################################################################
|
3
|
-
# Time-stamp: <
|
3
|
+
# Time-stamp: <Thu 2018-11-08 23:17 svarrette>
|
4
4
|
################################################################################
|
5
5
|
# Interface for Bootstrapping various symlinks within your project
|
6
6
|
#
|
@@ -14,7 +14,6 @@ require 'facter'
|
|
14
14
|
|
15
15
|
include FalkorLib::Common
|
16
16
|
|
17
|
-
|
18
17
|
module FalkorLib
|
19
18
|
module Bootstrap
|
20
19
|
# Hold [sim]link fonction creations
|
data/lib/falkorlib/cli.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
################################################################################
|
3
|
-
# Time-stamp: <Thu 2018-11-08
|
3
|
+
# Time-stamp: <Thu 2018-11-08 23:16 svarrette>
|
4
4
|
################################################################################
|
5
5
|
# Interface for the CLI
|
6
6
|
#
|
@@ -133,6 +133,9 @@ By default, <PATH> is '.' meaning that the repository will be initialized in the
|
|
133
133
|
FalkorLib::Bootstrap.mkdocs(path, options)
|
134
134
|
end # mkdocs
|
135
135
|
|
136
|
+
###### make <subcommand> ######
|
137
|
+
desc "make <type> [<path>]", "Initialize one of Falkor's Makefile, typically bring as a symlink"
|
138
|
+
subcommand "make", FalkorLib::CLI::Make
|
136
139
|
|
137
140
|
|
138
141
|
###### motd ######
|
data/lib/falkorlib/version.rb
CHANGED