This commit is contained in:
Kreyren 2020-02-03 08:48:17 +00:00
parent cc34fc23b7
commit 0b6d0f8e13
6 changed files with 40 additions and 4 deletions

@ -12,4 +12,5 @@ vscode:
- bungcip.better-toml@0.3.2:3QfgGxxYtGHfJKQU7H0nEw==
- hbenl.vscode-test-explorer@2.15.0:koqDUMWDPJzELp/hdS/lWw==
- belfz.search-crates-io@1.2.1:kSLnyrOhXtYPjQpKnMr4eQ==
- serayuzgur.crates@0.4.7:HMkoguLcXp9M3ud7ac3eIw==
- serayuzgur.crates@0.4.7:HMkoguLcXp9M3ud7ac3eIw==
- timonwong.shellcheck@0.9.0:hsU/Rd39aqPYowTqL+DbXg==

@ -17,4 +17,6 @@ log = "0.4.8"
# FIXME: Replace with latest once development is in gold
die = "0.2.0"
# Used for repository management as alternative to 'make'
cargo-make = "0.26.2"
cargo-make = "0.26.2"
# Used for reading toml files
toml = "0.5.6"

1
po/README.md Normal file

@ -0,0 +1 @@
Directory used for translations

2
po/english.toml Normal file

@ -0,0 +1,2 @@
myvar = "test_v"
myvar = "test1_v"

@ -1,3 +1,13 @@
#!/usr/bin/env bash
printf '%s\n' "ping"
printf '%s\n' "ping"
# Argument management
while [ $# -ge 1 ]; do case $1 in
--help|-h|help)
fixme "Help message here"
shift 1
;;
*)
die 2 "FIXME: Syntax error"
esac; done

@ -1,3 +1,23 @@
#!/bin/sh
printf '%s\n' "ping"
printf '%s\n' "ping"
# Simplified assertion
die() {
printf 'FATAL: %s\n' "$2"
exit "$1"
}
fixme() {
[ -z "$IGNORE_FIXME" ] && printf 'FIXME: %s\n' "$1"
}
# Argument management
while [ $# -ge 1 ]; do case $1 in
--help|-h|help)
fixme "Help message here"
shift 1
;;
*)
die 2 "FIXME: Syntax error"
esac; done