-
Notifications
You must be signed in to change notification settings - Fork 2
/
.vtide.yml
58 lines (55 loc) · 1.23 KB
/
.vtide.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
count: 8
default:
restart: 0
wait: 1
name: git-workflow-tools
terminals:
1a:
command: ./Build && ./Build testcover
restart: 1
wait: 0
watch:
- lib
- bin
- test
2:
edit: base
3:
edit: utils
editor:
helper: |
sub {
my ($self, $group) = @_;
return () if $group !~ /^cmd-/;
my ($cmd) = $group =~ /cmd-(.*)/;
my $lib = join '', map {ucfirst $_} split /-/, $cmd;
return (
"bin/git-$cmd",
"lib/App/Git/Workflow/Command/$lib.pm",
"t/$group.t",
);
}
helper_autocomplete: |
sub {
my ($pos, $args) = @_;
my $arg = $args->[$pos] || '';
my $argument = $arg && $arg ne 'edit' ? qr/^$arg/ : qr/./;
my @list = map {/^t\/(cmd-.*).t$/; $1} glob "t/cmd-*.t";
return @list;
}
files:
base:
- lib/App/Git/Workflow.pm
- lib/App/Git/Workflow/Command.pm
- lib/App/Git/Workflow/Repository.pm
utils:
- lib/App/Git/Workflow/Pom.pm
- lib/Mock/App/Git/Workflow/Repository.pm
- lib/Test/Git/Workflow/Command.pm
pom:
- bin/git-pom
- lib/App/Git/Workflow/Command/Pom.pm
- t/cmd-pom.t
- lib/App/Git/Workflow/Pom.pm
- t/pom.t