makeShell: make help message extensible
Users can now override help and print more help messages alongside `nixBitcoinHelp`.
This commit is contained in:
parent
0478354477
commit
6584540828
@ -22,7 +22,7 @@ pkgs.stdenv.mkDerivation {
|
|||||||
# 2. the shell is interactive
|
# 2. the shell is interactive
|
||||||
if [[ -t 1 && $- == *i* ]]; then isInteractive=1; else isInteractive=; fi
|
if [[ -t 1 && $- == *i* ]]; then isInteractive=1; else isInteractive=; fi
|
||||||
|
|
||||||
help() {
|
nixBitcoinHelp() {
|
||||||
echo "nix-bitcoin path: ${toString ../.}"
|
echo "nix-bitcoin path: ${toString ../.}"
|
||||||
echo
|
echo
|
||||||
echo "Available commands"
|
echo "Available commands"
|
||||||
@ -46,6 +46,7 @@ pkgs.stdenv.mkDerivation {
|
|||||||
echo "update-nix-bitcoin"
|
echo "update-nix-bitcoin"
|
||||||
echo " Fetch and use the latest version of nix-bitcoin"
|
echo " Fetch and use the latest version of nix-bitcoin"
|
||||||
}
|
}
|
||||||
|
help() { nixBitcoinHelp; }
|
||||||
h() { help; }
|
h() { help; }
|
||||||
|
|
||||||
fetch-release() {
|
fetch-release() {
|
||||||
|
Loading…
Reference in New Issue
Block a user