parent
b891918d6f
commit
4798115af2
4 changed files with 16 additions and 52 deletions
|
|
@ -10,7 +10,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: https://github.com/oxsecurity/megalinter@v8
|
||||
- uses: https://github.com/oxsecurity/megalinter/flavors/cupcake@v8.7.0
|
||||
|
||||
- uses: https://github.com/wackbyte/rust-toolchain@trunk
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -3,6 +3,6 @@
|
|||
`mvw` is a reimplementation of my old `mvwrap` Perl script. The goal is to be much faster and not need Perl anymore.
|
||||
|
||||
Building can be done with:
|
||||
```
|
||||
$ cargo build --release
|
||||
```bash
|
||||
cargo build --release
|
||||
```
|
||||
|
|
|
|||
|
|
@ -11,7 +11,19 @@
|
|||
"digest"
|
||||
],
|
||||
"automerge": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"matchPackagePatterns": ["^actions/checkout"],
|
||||
"ignoreVersions": ["v4"]
|
||||
},
|
||||
{
|
||||
"matchPackagePatterns": ["^https://github.com/oxsecurity/megalinter"],
|
||||
"ignoreVersions": [">=8.7.0"]
|
||||
},
|
||||
{
|
||||
"matchPackagePatterns": ["^https://github.com/wackbyte/rust-toolchain"],
|
||||
"ignoreVersions": ["trunk"]
|
||||
},
|
||||
],
|
||||
"osvVulnerabilityAlerts": true
|
||||
}
|
||||
|
|
|
|||
48
setup.sh
48
setup.sh
|
|
@ -4,54 +4,6 @@ set -u # Throw errors when unset variables are used
|
|||
set -e # Exit on error
|
||||
#set -o pipefail # Bash specific
|
||||
|
||||
usage() {
|
||||
echo "Tool to BLAH BLAH BLAH"
|
||||
echo
|
||||
echo "Usage:"
|
||||
echo "$0 [-eh] [-a <arg>] <blabla>"
|
||||
echo
|
||||
echo "-a <arg> Option with argument"
|
||||
echo "-e Example option"
|
||||
echo "-h This help message"
|
||||
exit
|
||||
}
|
||||
|
||||
askyn() {
|
||||
while true; do
|
||||
printf '%s ' "$1 "
|
||||
read -r yn
|
||||
case $yn in
|
||||
[Yy]* ) return 0;;
|
||||
[Nn]* ) return 1;;
|
||||
* ) echo "Please answer [y]es or [n]o.";;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
# A POSIX variable
|
||||
OPTIND=1 # Reset in case getopts has been used previously in the shell.
|
||||
|
||||
# Initialize our own variables:
|
||||
ARGUMENT=""
|
||||
EXAMPLE=""
|
||||
|
||||
# getopts only allows single letter options (but is apparently the most
|
||||
# portable). If you want multi letter options (eg --help) use getopt.
|
||||
while getopts "hea:" opt; do
|
||||
case "$opt" in
|
||||
a) ARGUMENT="$OPTARG";;
|
||||
h)
|
||||
usage
|
||||
;;
|
||||
e) EXAMPLE="-e" ;;
|
||||
?) exit 1 ;; # message provided by getopts
|
||||
esac
|
||||
done
|
||||
|
||||
shift $((OPTIND-1))
|
||||
|
||||
[ $# -ge 1 ] && [ "$1" = "--" ] && shift
|
||||
|
||||
MYDIR=$(dirname "$(realpath "$0")")
|
||||
TESTDIR="${MYDIR}/test"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue