Update Rust crate clap to v4.5.39 #7
5 changed files with 44 additions and 60 deletions
|
|
@ -8,9 +8,17 @@ jobs:
|
||||||
name: cargo test
|
name: cargo test
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||||
|
|
||||||
- uses: https://github.com/oxsecurity/megalinter@v8
|
- uses: https://github.com/oxsecurity/megalinter@v8
|
||||||
|
env:
|
||||||
|
MEGALINTER_FLAVOR: cupcake
|
||||||
|
GITHUB_SERVER_URL: https://forgejo.wizeazz.nl
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# set validate all codebase to false to only check new or edited files
|
||||||
|
VALIDATE_ALL_CODEBASE: false
|
||||||
|
GITHUB_STATUS_REPORTER: ${{ !env.ACT }}
|
||||||
|
GITHUB_COMMENT_REPORTER: ${{ !env.ACT }}
|
||||||
|
|
||||||
- uses: https://github.com/wackbyte/rust-toolchain@trunk
|
- uses: https://github.com/wackbyte/rust-toolchain@trunk
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
19
.mega-linter.yml
Normal file
19
.mega-linter.yml
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
---
|
||||||
|
APPLY_FIXES: none
|
||||||
|
DISABLE:
|
||||||
|
- ACTION
|
||||||
|
- COPYPASTE
|
||||||
|
- DOCKERFILE
|
||||||
|
- GO
|
||||||
|
- JAVASCRIPT
|
||||||
|
- KUBERNETES
|
||||||
|
- SALESFORCE
|
||||||
|
- SPELL
|
||||||
|
DISABLE_LINTERS:
|
||||||
|
- YAML_YAMLLINT
|
||||||
|
- MARKDOWN_MARKDOWN_TABLE_FORMATTER
|
||||||
|
- MARKDOWN_MARKDOWN_LINK_CHECK
|
||||||
|
- REPOSITORY_KICS
|
||||||
|
FILTER_REGEX_EXCLUDE: .*testdata/*
|
||||||
|
PARALLEL: false
|
||||||
|
PRINT_ALPACA: false
|
||||||
|
|
@ -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.
|
`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:
|
Building can be done with:
|
||||||
```
|
```bash
|
||||||
$ cargo build --release
|
cargo build --release
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,21 @@
|
||||||
{
|
{
|
||||||
"extends": [
|
"extends": ["config:best-practices"],
|
||||||
"config:best-practices"
|
|
||||||
],
|
|
||||||
"packageRules": [
|
"packageRules": [
|
||||||
{
|
{
|
||||||
"matchUpdateTypes": [
|
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
|
||||||
"minor",
|
|
||||||
"patch",
|
|
||||||
"pin",
|
|
||||||
"digest"
|
|
||||||
],
|
|
||||||
"automerge": false
|
"automerge": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"matchPackagePatterns": ["^actions/checkout"],
|
||||||
|
"matchUpdateTypes": ["minor", "patch", "digest"],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"matchPackagePatterns": ["^https://github.com/oxsecurity/megalinter"],
|
||||||
|
"matchUpdateTypes": ["minor", "patch", "digest"],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"matchPackagePatterns": ["^https://github.com/wackbyte/rust-toolchain"],
|
||||||
|
"matchUpdateTypes": ["minor", "patch", "digest"],
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"osvVulnerabilityAlerts": true
|
"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 -e # Exit on error
|
||||||
#set -o pipefail # Bash specific
|
#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")")
|
MYDIR=$(dirname "$(realpath "$0")")
|
||||||
TESTDIR="${MYDIR}/test"
|
TESTDIR="${MYDIR}/test"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue