Skip to content

Commit a17acf1

Browse files
committed
atags: remove HELPTEXT
1 parent 335f5ab commit a17acf1

File tree

1 file changed

+51
-40
lines changed

1 file changed

+51
-40
lines changed

src/tags_main.zig

Lines changed: 51 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -9,46 +9,6 @@ const ID = manage_main.ID;
99
const logger = std.log.scoped(.atags);
1010

1111
const VERSION = "0.0.1";
12-
const HELPTEXT =
13-
\\ atags: manage your tags
14-
\\
15-
\\ usage:
16-
\\ \tatags action [arguments...]
17-
\\
18-
\\ options:
19-
\\ \t-h\tprints this help and exits
20-
\\ \t-V\tprints version and exits
21-
\\ \t--no-confirm\tdo not ask for confirmation on remove
22-
\\ \tcommands.
23-
\\
24-
\\ examples of tag operations::
25-
\\ \tatags create tag
26-
\\ \tatags create --core lkdjfalskjg tag
27-
\\ \tatags search tag
28-
\\ \tatags search --exact tag
29-
\\ \tatags remove --tag tag
30-
\\ \tatags remove --core dslkjfsldkjf
31-
\\ \tatags remove --only-tag-name mytag --> only deleted name, no actual tag cores deleted
32-
\\
33-
\\ tag parent operations:
34-
\\ \tatags parent create child_tag parent_tag
35-
\\ \tatags parent list
36-
\\ \tatags parent remove id
37-
\\ \tatags parent remove --delete-tag-file-entries id
38-
\\ \tremove the parent entry and clean up the files that had tags
39-
\\ \tadded by this parent relationship
40-
\\
41-
\\ pool operations:
42-
\\ \tatags pool create "my pool title"
43-
\\ \tatags pool search "my"
44-
\\ \tatags pool fetch id
45-
\\ \tatags pool remove id
46-
\\
47-
\\ source operations:
48-
\\ atags source create "deepdanbooru"
49-
\\ atags source list
50-
\\ atags source remove id
51-
;
5212

5313
const ActionConfig = union(enum) {
5414
Create: CreateAction.Config,
@@ -1788,6 +1748,57 @@ pub fn main() anyerror!void {
17881748
\\<command> action (for tags: create, search, remove. there's parent, pool, source)
17891749
\\
17901750
\\ atags: manage tags, tag parents, pools, and tag sources
1751+
\\
1752+
\\ examples for tag operations:
1753+
\\
1754+
\\
1755+
\\ atags create tag
1756+
\\
1757+
\\ atags create --core lkdjfalskjg tag
1758+
\\
1759+
\\ atags search tag
1760+
\\
1761+
\\ atags search --exact tag
1762+
\\
1763+
\\ atags remove --tag tag
1764+
\\
1765+
\\ atags remove --core dslkjfsldkjf
1766+
\\
1767+
\\ atags remove --only-tag-name mytag --> only deleted name, no actual tag cores deleted
1768+
\\
1769+
\\
1770+
\\ tag parenting operations:
1771+
\\
1772+
\\ atags parent create child_tag parent_tag
1773+
\\
1774+
\\ atags parent list
1775+
\\
1776+
\\ atags parent remove id
1777+
\\
1778+
\\ atags parent remove --delete-tag-file-entries id
1779+
\\
1780+
\\ remove the parent entry and clean up the files that had tags
1781+
\\ added by this parent relationship
1782+
\\
1783+
\\
1784+
\\ pool operations:
1785+
\\
1786+
\\ atags pool create "my pool title"
1787+
\\
1788+
\\ atags pool search "my"
1789+
\\
1790+
\\ atags pool fetch id
1791+
\\
1792+
\\ atags pool remove id
1793+
\\
1794+
\\
1795+
\\ source operations:
1796+
\\
1797+
\\ atags source create "deepdanbooru"
1798+
\\
1799+
\\ atags source list
1800+
\\
1801+
\\ atags source remove id
17911802
);
17921803

17931804
var iter = try std.process.ArgIterator.initWithAllocator(allocator);

0 commit comments

Comments
 (0)