dj(1): Refactor source a bit, remove -Adq #125

Closed
trinity wants to merge 0 commits from dj into main
Owner
  • dj -A has been replaced with dj -a "\0" or the more brief dj -a ''.
  • dj -d was mostly necessary for debugging number parsing and putting it in an option rather than a compilation flag, while seemingly sensible at the time, is something I now regret.
  • dj -q can be replaced with something like dj -o /dev/null 2>&1 | grep -ve '^\t' -e 'Partial'.

These changes have also been made in the man page.

Additionally, I reworked the program to use more sensible scoping for variables (no more globals, except static allocations) and fixed some functions to make more sense in usage.

- `dj -A` has been replaced with `dj -a "\0"` or the more brief `dj -a ''`. - `dj -d` was mostly necessary for debugging number parsing and putting it in an option rather than a compilation flag, while seemingly sensible at the time, is something I now regret. - `dj -q` can be replaced with something like `dj -o /dev/null 2>&1 | grep -ve '^\t' -e 'Partial'`. These changes have also been made in the man page. Additionally, I reworked the program to use more sensible scoping for variables (no more globals, except static allocations) and fixed some functions to make more sense in usage.
trinity added the
enhancement
label 2024-06-26 15:42:14 -06:00
trinity added 9 commits 2024-06-26 15:42:15 -06:00
emma reviewed 2024-06-26 15:47:04 -06:00
docs/dj.1 Outdated
@ -104,3 +92,1 @@
.B -q
option is specified, a diagnostic message is printed. Then, the program exits
unless the
On a partial or empty read a diagnostic message is printed. Then, the program
Owner

On a partial or empty read, a diagnostic message [...]

> On a partial or empty read, a diagnostic message [...]
emma marked this conversation as resolved
emma reviewed 2024-06-26 15:49:20 -06:00
@ -11,7 +11,7 @@ dj \(en disk jockey
.SH SYNOPSIS
Owner

If you update the manpage, update the date to the date when you updated it.

If you update the manpage, update the date to the date when you updated it.
emma marked this conversation as resolved
emma reviewed 2024-06-26 15:55:10 -06:00
docs/dj.1 Outdated
@ -81,4 +75,2 @@
DIAGNOSTICS section. Each invocation increments the debug level of the
program.
.IP \fB-H\fP
Prints diagnostics messages in a human-readable manner as described in the
Owner

This isn’t a change made here but this should say “diagnostic message” because it is an adjective and because it would be in line with the rest of the manpage.

This isn’t a change made here but this should say “diagnostic message” because it is an adjective and because it would be in line with the rest of the manpage.
emma marked this conversation as resolved
trinity changed title from WIP: dj(1): Refactor source a bit, remove -adq to WIP: dj(1): Refactor source a bit, remove -Adq 2024-06-27 05:59:12 -06:00
trinity added 1 commit 2024-06-29 05:55:42 -06:00
trinity added 1 commit 2024-06-29 05:56:45 -06:00
trinity changed title from WIP: dj(1): Refactor source a bit, remove -Adq to dj(1): Refactor source a bit, remove -Adq 2024-06-29 05:57:01 -06:00
trinity requested review from emma 2024-06-29 05:57:09 -06:00
emma approved these changes 2024-06-29 06:34:45 -06:00
Dismissed
Owner

Just making sure you’ve implemented #113 before this is merged in.

Just making sure you’ve implemented #113 before this is merged in.
trinity added 1 commit 2024-06-29 19:15:26 -06:00
trinity added 1 commit 2024-06-29 19:23:24 -06:00
trinity requested review from emma 2024-06-29 19:23:44 -06:00
emma approved these changes 2024-06-29 20:05:28 -06:00
trinity closed this pull request 2024-06-29 20:21:27 -06:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: bonsai/harakit#125
No description provided.