Add test client for redis

This commit is contained in:
eleksir
2021-12-11 15:38:58 +03:00
parent ab89105168
commit f33e05a91c
3 changed files with 87 additions and 4 deletions

39
bin/redis_msg_gen.pl Normal file
View File

@@ -0,0 +1,39 @@
#!/usr/bin/perl
use 5.018;
use strict;
use warnings;
use utf8;
use open qw (:std :utf8);
use English qw ( -no_match_vars );
use version; our $VERSION = qw (1.0);
my $workdir;
# before we run, change working dir
BEGIN {
use Cwd qw (chdir abs_path);
my @CWD = split /\//xms, abs_path ($PROGRAM_NAME);
if ($#CWD > 1) {
$#CWD = $#CWD - 1;
}
$workdir = join '/', @CWD;
chdir $workdir;
}
use lib ("$workdir/lib", "$workdir/vendor_perl", "$workdir/vendor_perl/lib/perl5");
use Cli qw (RunCli);
# set correct proctitle
$PROGRAM_NAME = abs_path $PROGRAM_NAME; ## no critic (Variables::RequireLocalizedPunctuationVars)
# run cli, at last
RunCli ();
exit 0;
__END__
# vim: set ft=perl noet ai ts=4 sw=4 sts=4: