-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit bd28a93
Showing
211 changed files
with
25,538 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: fe1938f255186e696bc0c14ee37b17c1 | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
API | ||
=== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Packages: | ||
|
||
|
||
apis/tools_blint.rst | ||
apis/tools_bdoc.rst | ||
apis/util_flags.rst | ||
apis/util_char.rst | ||
apis/util_time.rst | ||
apis/util_filepath.rst | ||
apis/util_os.rst | ||
apis/util_strings.rst | ||
apis/util_complex.rst | ||
apis/util_binary.rst | ||
apis/util_user.rst | ||
apis/util_file.rst | ||
apis/util_regexp.rst | ||
apis/util_math.rst | ||
apis/util_map.rst | ||
apis/util_fileinfo.rst | ||
apis/util_set.rst | ||
apis/util_rand.rst | ||
apis/util_list.rst | ||
apis/testing_bunit.rst | ||
apis/testing_testt.rst | ||
apis/testing_bunit_result.rst | ||
apis/net_response.rst | ||
apis/net_request.rst | ||
apis/net_handler.rst | ||
apis/net_http.rst | ||
apis/ui_ui.rst | ||
apis/ui_textui.rst | ||
apis/ui_whiptail.rst | ||
apis/external_git_github.rst | ||
apis/database_sql.rst | ||
apis/container_ring.rst | ||
apis/container_list.rst | ||
apis/lang_bash.rst | ||
apis/lang_x.rst | ||
apis/lang_assert.rst | ||
apis/lang_os.rst | ||
apis/lang_make.rst | ||
apis/lang_runtime.rst | ||
apis/lang_bool.rst | ||
apis/lang_sys.rst | ||
apis/lang_unsafe.rst | ||
apis/lang_log.rst | ||
apis/lang_int.rst | ||
apis/lang_core.rst | ||
apis/lang_pipe.rst | ||
apis/lang_jqmem.rst | ||
apis/lang_result.rst | ||
apis/sync_wait_group.rst | ||
apis/sync_chan.rst | ||
apis/sync_atomic_int.rst | ||
apis/sync_mutex.rst | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
container/list.sh | ||
================= | ||
|
||
Doubly linked list. | ||
|
||
.. py:function:: container_Element | ||
Construct an element of a list. | ||
|
||
.. py:function:: container_Element_next | ||
Get the next element. | ||
|
||
.. py:function:: container_Element_prev | ||
Get the previous element. | ||
|
||
.. py:function:: container_List | ||
Construct a doubly linked list. | ||
|
||
.. py:function:: container_List_back | ||
Return element at the back. | ||
|
||
.. py:function:: container_List_front | ||
Return element at the front. | ||
|
||
.. py:function:: container_List_init | ||
Init a list. | ||
|
||
.. py:function:: container_List_insert_after | ||
Insert a value after the marker element. | ||
|
||
.. py:function:: container_List_insert_before | ||
Insert a value before the marker element. | ||
|
||
.. py:function:: container_List_len | ||
Return length of a list. | ||
|
||
.. py:function:: container_List_move_after | ||
Move element after the given marker. | ||
|
||
.. py:function:: container_List_move_before | ||
Move element before the given marker. | ||
|
||
.. py:function:: container_List_move_to_back | ||
Move element to the back of the list. | ||
|
||
.. py:function:: container_List_move_to_front | ||
Move element to the front of the list. | ||
|
||
.. py:function:: container_List_push_back | ||
Push a value to the back of this list. | ||
|
||
.. py:function:: container_List_push_back_list | ||
Push one list at the end of another. | ||
|
||
.. py:function:: container_List_push_front | ||
Push a value to the front of this list. | ||
|
||
.. py:function:: container_List_push_front_list | ||
Push one list to the front of another. | ||
|
||
.. py:function:: container_List_remove | ||
Remove the given element from this list. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
container/ring.sh | ||
================= | ||
|
||
Operations on circural lists. | ||
|
||
.. py:function:: container_Ring | ||
Construct a ring. | ||
|
||
.. py:function:: container_Ring_do | ||
Call the given function on each element of the ring. | ||
|
||
.. py:function:: container_Ring_init | ||
Return the next ring element. | ||
|
||
.. py:function:: container_Ring_len | ||
Return length of the ring. | ||
|
||
.. py:function:: container_Ring_link | ||
Connect ring r with ring s. | ||
|
||
.. py:function:: container_Ring_move | ||
Move n % len(r) elements backward or forward. | ||
|
||
.. py:function:: container_Ring_next | ||
Return the next ring element. | ||
|
||
.. py:function:: container_Ring_prev | ||
Return the previous ring element. | ||
|
||
.. py:function:: container_Ring_unlink | ||
Unlike elements. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
database/sql.sh | ||
=============== | ||
|
||
SQL support (experimental). | ||
|
||
.. py:function:: SQLite | ||
SQL driver. | ||
|
||
.. py:function:: SQLite_query | ||
Query db. | ||
|
||
.. py:function:: sql_connect | ||
Connect to a database using the given driver. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
external/git/github.sh | ||
====================== | ||
|
||
GitHub util functions. | ||
|
||
.. py:function:: github_branch_info | ||
Fetch branch info (and print in json format). | ||
|
||
.. py:function:: github_branch_latest_sha | ||
Extract latest sha from branch info. | ||
|
||
.. py:function:: github_branches | ||
Fetch branches (and print in json format). | ||
|
||
.. py:function:: github_commit_info | ||
Return commit info for the given SHA. | ||
|
||
.. py:function:: github_commits | ||
Fetch commits from the given SHA. | ||
|
||
.. py:function:: github_create_pr | ||
https://stackoverflow.com/questions/56027634/creating-a-pull-request-using-the-api-of-github | ||
|
||
.. py:function:: github_enabled | ||
Check if this module is enabled. | ||
|
||
.. py:function:: github_id_to_sha | ||
Extract SHA for the given run id. | ||
|
||
.. py:function:: github_is_outcome | ||
Return if the action name resulted in the given outcome. | ||
|
||
.. py:function:: github_jobs | ||
Fetch jobs for the given RUN-ID. | ||
|
||
.. py:function:: github_pr_add_comment | ||
Add a comment to a PR. | ||
|
||
.. py:function:: github_pr_assign_reviewer | ||
Assign a reviewer to a PR. | ||
|
||
.. py:function:: github_pr_commits | ||
Fetch commits for the given PR (and print in json format). | ||
|
||
.. py:function:: github_prs | ||
Fetch PRs (and print in json format). | ||
|
||
.. py:function:: github_runs | ||
Fetch action runs (and print in json format). | ||
|
||
.. py:function:: github_tag_latest | ||
Extract latest tag. | ||
|
||
.. py:function:: github_tags | ||
Fetch tags (and print in json format). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
lang/assert.sh | ||
============== | ||
|
||
Util assert functions. | ||
|
||
.. py:function:: assert_bw | ||
Exit if the first arg is not between the next two exclusive | ||
(ints). | ||
|
||
.. py:function:: assert_dir_exists | ||
Exit if directory does not exist. | ||
|
||
.. py:function:: assert_ec | ||
Exit if the value is not an error as defined by this lib. | ||
|
||
.. py:function:: assert_eq | ||
Check that two values are equal (lexical); exit if not true. | ||
|
||
.. py:function:: assert_exe_exists | ||
Exit if the executable does not exit. | ||
|
||
.. py:function:: assert_fail | ||
Fail (exit) with the given message. | ||
|
||
.. py:function:: assert_false | ||
Exit if the given value is not false. | ||
|
||
.. py:function:: assert_file_exists | ||
Exit if file does not exit. | ||
|
||
.. py:function:: assert_function_exists | ||
Exit if the given name is not a function. | ||
|
||
.. py:function:: assert_ge | ||
Exit if the first arg is less than the second (ints). | ||
|
||
.. py:function:: assert_gt | ||
Exit if the first arg is less or equal to the second (ints). | ||
|
||
.. py:function:: assert_has_prefix | ||
Exit if the value does ont have the given prefix. | ||
|
||
.. py:function:: assert_lt | ||
Exit if the first arg is greater or equal to second (ints). | ||
|
||
.. py:function:: assert_ne | ||
Check that two values are not equal (lexical); exit if yes. | ||
|
||
.. py:function:: assert_nz | ||
Check that the given value is not zero; exit if not true. | ||
|
||
.. py:function:: assert_port_free | ||
Exit if the given port is not free. | ||
|
||
.. py:function:: assert_user | ||
Exit if the given name does not match the current user. | ||
|
||
.. py:function:: assert_user_starts_with | ||
Exit if the given name is not a prefix of the current user. | ||
|
||
.. py:function:: assert_ze | ||
Check that the given value is zero; exit if not true. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
lang/bash.sh | ||
============ | ||
|
||
API for some bash variables. | ||
|
||
.. py:function:: bash_version_arch | ||
Return bash architecture string. | ||
|
||
.. py:function:: bash_version_build | ||
Return bash build number. | ||
|
||
.. py:function:: bash_version_major | ||
Return bash major number. | ||
|
||
.. py:function:: bash_version_minor | ||
Return bash minor number. | ||
|
||
.. py:function:: bash_version_patch | ||
Return bash patch number. | ||
|
||
.. py:function:: bash_version_release | ||
Return bash release string. | ||
|
Oops, something went wrong.