Update help message

This commit is contained in:
2025-09-18 08:58:13 +10:00
parent f898fd0609
commit 6ddc028323

34
digpkg
View File

@@ -14,7 +14,7 @@ greater $size 0 &cond
if $cond %checkArgs
stdlnout "Dig package manager"
stdlnout "Type 'dig install pkgname' to install a package or 'dig help' for more information"
stdlnout "Type 'digpkg install pkgname' to install a package or 'digpkg help' for more information"
end 1
@checkArgs
@@ -24,13 +24,19 @@ getlistat *args 0 &instruction
equal $instruction "install" &cond
if $cond %install
equal $instruction "init" &cond
if $cond %init
equal $instruction "run" &cond
if $cond %run
equal $instruction "help" &cond
if $cond %help
@install
greater $size 1 &cond
if $cond %installcontinue
stdlnout "Usage: dig install pkgname"
stdlnout "Usage: digpkg install pkgname"
end 1
@installcontinue
@@ -74,6 +80,26 @@ end 1
stdlnout "Success!"
end 0
@help
stdlnout ""
@init
stdlnout "Working on it"
end 0
@run
stdlnout "Working on it"
end 0
@help
stdlnout "dig package manager"
stdlnout "This allows easier use of the Ground programming language"
stdlnout "Usage:"
stdlnout " digpkg install (package name)"
stdlnout " Installs a package to /usr/lib/ground (requires sudo/root access)"
stdlnout " digpkg init"
stdlnout " Initialises a Ground project in a directory, creating a Digfile and src/main.grnd"
stdlnout " digpkg run"
stdlnout " Runs a Ground program, if there is a Digfile in the current directory"
stdlnout " digpkg help"
stdlnout " Prints this error message"
end 0