Skip to content

Commit

Permalink
doc: Include documentation for several sys functions
Browse files Browse the repository at this point in the history
  • Loading branch information
gliga committed Jan 31, 2024
1 parent 7d41b10 commit 010a1e4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/lang/sys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ readonly SYS_SUFFIX="-dev"
# Functions.

function sys_version() {
# Version.
# Return gobash version.
#
# :return: gobash version.
# :rtype: string
local ctx; is_ctx "${1}" && ctx="${1}" && shift
[ $# -ne 0 ] && { ctx_wn $ctx; return $EC; }
shift 0 || { ctx_wn $ctx; return $EC; }
Expand All @@ -30,6 +33,9 @@ function sys_version() {

function sys_repo_path() {
# Root dir for this repo.
#
# :return: root directory for this repository.
# :rtype: string
local ctx; is_ctx "${1}" && ctx="${1}" && shift
[ $# -ne 0 ] && { ctx_wn $ctx; return $EC; }
shift 0 || { ctx_wn $ctx; return $EC; }
Expand All @@ -39,6 +45,9 @@ function sys_repo_path() {

function sys_stack_trace() {
# Print stack trace.
#
# :return: stack trace.
# :rtype: strings
local ctx; is_ctx "${1}" && ctx="${1}" && shift
[ $# -ne 0 ] && { ctx_wn $ctx; return $EC; }
shift 0 || { ctx_wn $ctx; return $EC; }
Expand Down

0 comments on commit 010a1e4

Please sign in to comment.