-
-
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
3850821
commit 0a4d869
Showing
21 changed files
with
162 additions
and
124 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
/zig-cache | ||
/.zig-cache | ||
*lock | ||
docs/resources | ||
docs/resources | ||
docs/public |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
docs/content/_index.org |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,24 @@ | ||
#+TITLE: Zigcli | ||
#+DATE: 2023-10-21T12:09:48+0800 | ||
#+LASTMOD: 2024-08-17T18:53:40+0800 | ||
#+TYPE: docs | ||
#+author: Jiacai Liu | ||
|
||
[[https://github.com/jiacai2050/zigcli][https://img.shields.io/github/stars/jiacai2050/zigcli.svg]] | ||
[[https://github.com/jiacai2050/loc/actions/workflows/CI.yml][https://github.com/jiacai2050/loc/actions/workflows/CI.yml/badge.svg]] | ||
[[https://github.com/jiacai2050/loc/actions/workflows/binary.yml][https://github.com/jiacai2050/loc/actions/workflows/binary.yml/badge.svg]] | ||
[[https://img.shields.io/badge/zig%20version-0.13.0-blue.svg]] | ||
|
||
#+begin_quote | ||
[[https://zigcli.liujiacai.net/][Zigcli]] is a toolkit for building command lines programs in Zig. | ||
#+end_quote | ||
|
||
Official website: https://zigcli.liujiacai.net/ | ||
|
||
It can be imported as [[https://zigcli.liujiacai.net/modules/][Zig modules]] or used directly as [[https://zigcli.liujiacai.net/programs/][binary programs]]. | ||
|
||
* Who's Using | ||
If you're using =zigcli=, and would like to be added here, welcome to [[https://github.com/jiacai2050/zigcli/pulls][open a PR]]. | ||
|
||
* License | ||
MIT, see [[https://github.com/jiacai2050/zigcli/blob/main/LICENSE][LICENSE]] for details. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
#+TITLE: Modules | ||
#+DATE: 2024-08-17T17:58:01+0800 | ||
#+LASTMOD: 2024-08-17T18:17:19+0800 | ||
#+WEIGHT: 10 | ||
#+TYPE: docs | ||
#+AUTHOR: Jiacai Liu | ||
#+DESCRIPTION: Zig modules | ||
|
||
|
||
* Install | ||
=zigcli= support [[https://ziglang.org/download/0.11.0/release-notes.html#Package-Management][package manager]] introduced in Zig 0.11. | ||
|
||
#+begin_src bash | ||
zig fetch --save=zigcli https://github.com/jiacai2050/zigcli/archive/${COMMIT}.tar.gz | ||
#+end_src | ||
|
||
#+RESULTS: | ||
|
||
Replace ~${COMMIT}~ with a real one, then in your =build.zig=, import the module like this: | ||
|
||
#+begin_src zig | ||
const zigcli = b.dependency("zigcli", .{}); | ||
|
||
// Currently zigcli provide two modules. | ||
exe.root_module.addImport("simargs", zigcli.module("simargs")); | ||
exe.root_module.addImport("pretty-table", zigcli.module("pretty-table")); | ||
#+end_src | ||
|
||
* Available modules |
8 changes: 7 additions & 1 deletion
8
docs/content/docs/modules/pretty-table.org → docs/content/modules/pretty-table.org
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
4 changes: 2 additions & 2 deletions
4
docs/content/docs/modules/simargs.org → docs/content/modules/simargs.org
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#+TITLE: Programs | ||
#+DATE: 2023-10-21T12:26:45+0800 | ||
#+LASTMOD: 2024-08-17T18:17:57+0800 | ||
#+TYPE: docs | ||
#+WEIGHT: 20 | ||
#+DESCRIPTION: Binary programs which can be used directly | ||
|
||
* Install | ||
Prebuilt binaries can be found in [[https://github.com/jiacai2050/zigcli/actions/workflows/binary.yml][CI's artifacts]], or you can build from source: | ||
#+begin_src bash | ||
git clone https://github.com/jiacai2050/zigcli.git | ||
#+end_src | ||
Then build with | ||
#+begin_src bash | ||
make build | ||
#+end_src | ||
|
||
#+begin_quote | ||
To build zigcli locally, Zig master is required, which can be downloaded [[https://ziglang.org/download/][here]]. | ||
#+end_quote | ||
|
||
* Available Programs |
7 changes: 6 additions & 1 deletion
7
docs/content/docs/programs/dark-mode.org → docs/content/programs/dark-mode.org
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
7 changes: 6 additions & 1 deletion
7
docs/content/docs/programs/loc.org → docs/content/programs/loc.org
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
7 changes: 6 additions & 1 deletion
7
docs/content/docs/programs/night-shift.org → docs/content/programs/night-shift.org
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
7 changes: 6 additions & 1 deletion
7
docs/content/docs/programs/pidof.org → docs/content/programs/pidof.org
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
7 changes: 6 additions & 1 deletion
7
docs/content/docs/programs/repeat.org → docs/content/programs/repeat.org
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
6 changes: 5 additions & 1 deletion
6
docs/content/docs/programs/tree.org → docs/content/programs/tree.org
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#+TITLE: Roadmap | ||
#+DATE: 2024-08-17T18:07:20+0800 | ||
#+LASTMOD: 2024-08-17T18:19:47+0800 | ||
#+WEIGHT: 30 | ||
#+TYPE: docs | ||
|
||
* Loc | ||
- Performance, at least comparable with [[https://github.com/cgag/loc][cgag/loc]] [[https://github.com/jiacai2050/loc/issues/1][#1]] | ||
- More options, such as =--exclude <regex>= | ||
- Support multiline comment |
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,2 +1,4 @@ | ||
github.com/alex-shpak/hugo-book v0.0.0-20230808113920-3f1bcccbfb24 h1:8NjMYBSFTtBLeT1VmpZAZznPOt1OH8aNCnE86sL4p4k= | ||
github.com/alex-shpak/hugo-book v0.0.0-20230808113920-3f1bcccbfb24/go.mod h1:L4NMyzbn15fpLIpmmtDg9ZFFyTZzw87/lk7M2bMQ7ds= | ||
github.com/FortAwesome/Font-Awesome v0.0.0-20240402185447-c0f460dca7f7/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo= | ||
github.com/google/docsy v0.10.0 h1:6tMDacPwAyRWNCfvsn/9qGOZDQ8b0aRzjRZvnZPY5dg= | ||
github.com/google/docsy v0.10.0/go.mod h1:c0nIAqmRTOuJ01F85U/wJPQtc3Zj9N58Kea9bOT2AJc= | ||
github.com/twbs/bootstrap v5.3.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0= |
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