bin/itan

filter: Statementstmt 33.3% 1 / 3 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 50.0% 2 / 4 CC 1 SCAR 2.6
CC
1
Cov
33%
BEGIN
1.3
CRAP 1.3
« blib/lib/App/iTan/Command/Reset.pm ↑ Summary blib/lib/App/iTan.pm »
1 #!/perl
2 0 ▶use App::iTan;
Subroutine BEGIN: called CC=1 SCAR=2.6
3 my $cmd = App::iTan->new_with_command;
4 $cmd->execute;
5  
6 =head1 NAME
7  
8 itan - Secure management of iTans for online banking
9  
10 =head1 USAGE
11  
12 itan [command] [options]
13  
14 =head1 COMMANDS
15  
16 =head2 import
17  
18 Imports a list of iTans into the database.
19  
20 itan import --file IMPORT_FILE [--deletefile] [--overwrite]
21  
22 =over
23  
24 =item * file
25  
26 Path to a file containing the iTans to be imported. The file must contain
27 two columns (separated by any non numeric characters). The first
28 column must be the index number. The second column must be the tan
29 number. If your online banking appication does not use index numbers just set
30 the first column to zero.
31  
32 10 434167
33 11 937102
34 OR
35 0 320791
36 0 823602
37  
38 =item * deletefile
39  
40 Option to delete the import file after a successful import
41  
42 =item * overwrite
43  
44 Index numbers must be unique. Default behaviour is to skip duplicate iTan
45 indices. When this flag is enabled the duplicate iTans will be overwritten.
46  
47 =back
48  
49 =head2 get
50  
51 Fetches an iTan an mark it as used. If possible the iTan is also copied
52 to the clipboard.
53  
54 itan get [--next] OR [--index INDEX [--lowerinactive]] [--memo MEMO]
55  
56 You will be prompted a password to decrypt the selected iTan.
57  
58 =over
59  
60 =item * next
61  
62 Fetches the next available iTan
63  
64 =item * index
65  
66 Fetches the iTan with the given index
67  
68 =item * lowerinvalid
69  
70 Marks all iTans lower than --index as invalid (Only in conjunction with
71 --index).
72  
73 =item * memo
74  
75 Optional memo on iTan usage
76  
77 =back
78  
79 =head2 info
80  
81 Returns information on the given iTan.
82  
83 itan info --index INDEX
84  
85 You will be promted a password to decrypt the selected iTan.
86  
87 =over
88  
89 =item * index
90  
91 Fetches the iTan with the given index
92  
93 =back
94  
95 =head2 list
96  
97 List of all either used or still available iTans
98  
99 itan list
100  
101 =head2 reset
102  
103 Mark all unused iTans as invalid
104  
105 =head2 delete
106  
107 Delete all invalid iTans
108  
109 =head2 help
110  
111 itan help
112 itan help COMMAND
113  
114 Display help text.
115  
116 =head2 commands
117  
118 itan commands
119  
120 Display a list of all available commands
« blib/lib/App/iTan/Command/Reset.pm ↑ Summary blib/lib/App/iTan.pm »