https://tranarchy.fish/~autumn/
Bonkers Transexual Pseudo-Hacker.
From Autumn! to ~vladh/hare-project-library
Signed-off-by: Autumn! <autumnull@posteo.net> --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index fd65b85..35ed4da 100644 --- a/README.md +++ b/README.md @@ -142,6 +142,7 @@ If you're interested specifically in 3D graphics, check out ## Utilities and system tools * [~autumnull/haredo](https://sr.ht/~autumnull/haredo): A simple and unix-idiomatic build automator * [~autumnull/straws](https://git.sr.ht/~autumnull/straws): Like fortune(1) but not terrible[message trimmed]
From Autumn! to ~sircmpwn/hare-dev
> it is still fairly straightforward to write subcommands agreed, > their usage is a minority of use-cases yes, although they're still an extremely common CLI semantics: hare, git, hut, sh, pretty much every interpreter usable in a shebang, etc > I appreciate that getopt lines up nicely with POSIX. it does. however, this proposal is not incompatible with posix - let me explain (so we're on the same page, i assume we're talking about https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html The one part which might initially seem posix incompatible is the fact that some options appear after the first operand. however, this can
From Autumn! to ~autumnull/haredo
Bugfixes: - Fix target path argument for default.do files Thanks to ~roselandgoose for the patch <3
From Autumn! to ~autumnull/haredo-devel
Thanks! Pushed with commit message slightly rephrased. ~Autumn
From Autumn! to ~autumnull/haredo
Ah yeah! That sure looks like a bug to me :) Good catch! ~Autumn
From Autumn! to ~sircmpwn/hare-dev
Signed-off-by: Autumn! <autumnull@posteo.net> --- In order to distinguish between cut("ab", "b") and cut("a", "b") bytes/tokenize.ha | 32 +++++++++++++++-------------- net/uri/query.ha | 4 ++++ regex/regex.ha | 50 +++++++++++++++------------------------------ strings/tokenize.ha | 48 ++++++++++++++++++++++++++----------------- 4 files changed, 67 insertions(+), 67 deletions(-) diff --git a/bytes/tokenize.ha b/bytes/tokenize.ha index 317f5b8a..f426bc82 100644 --- a/bytes/tokenize.ha @@ -184,11 +184,12 @@ export fn remaining_tokens(s: *tokenizer) []u8 = { [message trimmed]
From Autumn! to ~sircmpwn/hare-dev
Signed-off-by: Autumn! <autumnull@posteo.net> --- time/chrono/chronology.ha | 5 +++-- time/chrono/timezone.ha | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/time/chrono/chronology.ha b/time/chrono/chronology.ha index eac10e6c..b8a1ed9e 100644 --- a/time/chrono/chronology.ha +++ b/time/chrono/chronology.ha @@ -56,9 +56,10 @@ export fn from_instant(i: time::instant, loc: locality) moment = { // Creates a new [[time::instant]] from a [[moment]]. export fn to_instant(m: moment) time::instant = { const daysec = (m.loc.daylength / time::SECOND); [message trimmed]
From Autumn! to ~sircmpwn/hare-dev
Signed-off-by: Autumn! <autumnull@posteo.net> --- datetime/datetime.ha | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/datetime/datetime.ha b/datetime/datetime.ha index b4c08b37..972a38c2 100644 --- a/datetime/datetime.ha +++ b/datetime/datetime.ha @@ -239,6 +239,15 @@ export fn finish(f: *builder, m: strategy...) (datetime | insufficient | invalid m = [strategy::ALL]; }; f.time = 0;[message trimmed]
From Autumn! to ~sircmpwn/hare-dev
Signed-off-by: Autumn! <autumnull@posteo.net> --- strconv/types.ha | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strconv/types.ha b/strconv/types.ha index b49eee0c..58406eb1 100644 --- a/strconv/types.ha +++ b/strconv/types.ha @@ -12,7 +12,7 @@ export type invalid = !size; export type overflow = !void; // Any error which may be returned from a strconv function. export type error = (invalid | overflow);[message trimmed]
From Autumn! to ~sircmpwn/hare-dev
I have a proposal to add subcommands to stdlib::getopt. It would allow a (str, []help) as a member type of getopt::help, with the name of the subcommand and its usage, and then return a subcommand in the 'subcmd' field of getopt::command. The specific semantics I'm proposing would: - interpret any options as normal - if the []help has a subcommand in it: - attempt to match the first arg with the name of a subcommand - if it matches, re-parse the non-option args with the []help for the subcommand. - else exit complaining about invalid subcommand - else capture the args as normal