about summary refs log tree commit diff stats
path: root/README
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-08-27 16:00:05 +0530
committerAndinus <andinus@nand.sh>2020-08-27 16:00:43 +0530
commitb64034d27406519ef7aa5601b22c8855c5420abd (patch)
tree46a620d3b1ed1629f727f7b3e66d806ac7dfbe5f /README
parenta263b887df4f22d12f119acb40c9f5ca8d76b3ca (diff)
downloadleo-b64034d27406519ef7aa5601b22c8855c5420abd.tar.gz
Add several paths to dispatch table, simplify table generation
I added a lot of things to profile, there was a lot of repetition in
dispatch table so I moved it to a function. Aliases were used for
inconvenient paths but I could've done this too:

    my %directories = (
        ssh => "$ENV{HOME}/.ssh",
        pass => "$ENV{HOME}/.password-store",
    );

    foreach my $dir (sort keys %directories) {
        $dispatch{$dir} = sub {
            archive("$archive_dir/${dir}_${ymd}.tar",
                    "-C", "$directories{$dir}", ".");
        };
    }
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions
103'>103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166