-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 parent
94cc8f5
commit 2b44ef3
Showing
10 changed files
with
154 additions
and
123 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
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
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 |
---|---|---|
@@ -1,28 +1,30 @@ | ||
#+TITLE: loc | ||
#+DATE: 2024-08-17T17:52:51+0800 | ||
#+LASTMOD: 2024-08-17T18:57:02+0800 | ||
#+LASTMOD: 2024-09-01T11:49:49+0800 | ||
#+TYPE: docs | ||
#+DESCRIPTION: Lines of code | ||
|
||
#+begin_src bash :results verbatim code :exports both | ||
#+begin_src bash :results verbatim :exports result :dir ../../.. | ||
./zig-out/bin/loc | ||
#+end_src | ||
|
||
#+RESULTS: | ||
#+begin_src bash | ||
┌───────────┬───────┬───────┬───────┬──────────┬────────┬──────────┐ | ||
│Language │File │Line │Code │Comment │Blank │Size │ | ||
├───────────┼───────┼───────┼───────┼──────────┼────────┼──────────┤ | ||
│Zig │13 │2774 │2362 │84 │328 │83.41K │ | ||
│YAML │8 │321 │298 │5 │18 │7.95K │ | ||
│TOML │1 │30 │24 │0 │6 │541.00B │ | ||
│Makefile │1 │22 │15 │0 │7 │354.00B │ | ||
│Markdown │3 │16 │15 │0 │1 │240.00B │ | ||
│Python │1 │10 │7 │2 │1 │166.00B │ | ||
│C │1 │9 │2 │4 │3 │34.00B │ | ||
│Ruby │1 │8 │5 │2 │1 │201.00B │ | ||
│JSON │1 │1 │1 │0 │0 │188.00B │ | ||
├───────────┼───────┼───────┼───────┼──────────┼────────┼──────────┤ | ||
│Total │30 │3191 │2729 │97 │365 │93.04K │ | ||
└───────────┴───────┴───────┴───────┴──────────┴────────┴──────────┘ | ||
#+end_src | ||
#+begin_example | ||
┌───────────┬───────┬────────┬───────┬──────────┬────────┬──────────┐ | ||
│Language │File │Line │Code │Comment │Blank │Size │ | ||
├───────────┼───────┼────────┼───────┼──────────┼────────┼──────────┤ | ||
│Zig │363 │10808 │9369 │1050 │389 │632.19K │ | ||
│YAML │8 │317 │292 │4 │21 │7.84K │ | ||
│TOML │1 │32 │27 │0 │5 │698.00B │ | ||
│Makefile │1 │23 │16 │0 │7 │365.00B │ | ||
│Python │1 │10 │7 │2 │1 │166.00B │ | ||
│C │1 │9 │2 │4 │3 │34.00B │ | ||
│Ruby │1 │8 │5 │2 │1 │201.00B │ | ||
│Markdown │1 │5 │5 │0 │0 │102.00B │ | ||
│CHeader │1 │2 │2 │0 │0 │44.00B │ | ||
│JSON │2 │2 │2 │0 │0 │247.00B │ | ||
├───────────┼───────┼────────┼───────┼──────────┼────────┼──────────┤ | ||
│Total │380 │11216 │9727 │1062 │427 │641.84K │ | ||
└───────────┴───────┴────────┴───────┴──────────┴────────┴──────────┘ | ||
|
||
#+end_example |
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
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
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 |
---|---|---|
@@ -1,17 +1,21 @@ | ||
#+TITLE: repeat | ||
#+DATE: 2024-08-17T17:52:32+0800 | ||
#+LASTMOD: 2024-08-17T18:58:53+0800 | ||
#+LASTMOD: 2024-09-01T11:57:51+0800 | ||
#+TYPE: docs | ||
#+DESCRIPTION: Execute a command repeatly until it succeeds. | ||
|
||
#+begin_src bash | ||
$ ./zig-out/bin/repeat -h | ||
#+begin_src bash :results verbatim :exports results :wrap example :dir ../../.. | ||
./zig-out/bin/repeat -h | ||
#+end_src | ||
|
||
#+RESULTS: | ||
#+begin_example | ||
USAGE: | ||
./zig-out/bin/repeat [OPTIONS] [--] command | ||
|
||
OPTIONS: | ||
-m, --max INTEGER Max times to repeat | ||
-i, --interval INTEGER Pause interval(in seconds) between repeats | ||
-v, --version Print version | ||
-h, --help Print help information | ||
#+end_src | ||
-m, --max INTEGER Max times to repeat | ||
-i, --interval INTEGER Pause interval(in seconds) between repeats | ||
-v, --version Print version | ||
-h, --help Print help information | ||
#+end_example |
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
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
Oops, something went wrong.