~yerinalexey

TODO

~yerinalexey/public-inbox

Last active a month ago

~yerinalexey/hare-sql

Last active 5 months ago
View more

Recent activity

[PATCH himitsu-git] cmd/git-credential-himitsu: Update for himitsu::client changes 2 days ago

From Alexey Yerin to ~sircmpwn/himitsu-devel

---
 cmd/git-credential-himitsu/main.ha | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/cmd/git-credential-himitsu/main.ha b/cmd/git-credential-himitsu/main.ha
index a0fbab5..6d73966 100644
--- a/cmd/git-credential-himitsu/main.ha
+++ b/cmd/git-credential-himitsu/main.ha
@@ -3,7 +3,6 @@ use fmt;
use himitsu::client;
use himitsu::query;
use io;
use memio;
use net;
[message trimmed]

[PATCH himitsu-ssh] cmd/hissh-export: Update for himitsu::client changes 2 days ago

From Alexey Yerin to ~sircmpwn/himitsu-devel

---
 cmd/hissh-export/main.ha | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/cmd/hissh-export/main.ha b/cmd/hissh-export/main.ha
index 06bed2b..6129037 100644
--- a/cmd/hissh-export/main.ha
+++ b/cmd/hissh-export/main.ha
@@ -57,12 +57,9 @@ export fn main() void = {
		const key = match (client::next(&iter)) {
		case void =>
			break;
		case let key: const str =>
		case let key: query::query =>
[message trimmed]

[PATCH himitsu-totp] cmd/hitotp: Update for himitsu::client changes 2 days ago

From Alexey Yerin to ~sircmpwn/himitsu-devel

---
 cmd/hitotp/main.ha | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/cmd/hitotp/main.ha b/cmd/hitotp/main.ha
index 79a6186..f3a5198 100644
--- a/cmd/hitotp/main.ha
+++ b/cmd/hitotp/main.ha
@@ -3,7 +3,6 @@ use encoding::base32;
use fmt;
use getopt;
use io;
use memio;
use net;
[message trimmed]

[PATCH hare v2] strconv: Remove base restrictions from doc comment of integertosb 4 days ago

From Alexey Yerin to ~sircmpwn/hare-dev

Base restrictions are not mentioned anywhere else, so removing it for
consistency. strconv::base also specifies that it's an enum of all valid bases,
which replaces comments for specific functions.

Signed-off-by: Alexey Yerin <yyp@disroot.org>
---
 strconv/numeric.ha | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/strconv/numeric.ha b/strconv/numeric.ha
index b0f5b4fc..e1612f5c 100644
--- a/strconv/numeric.ha
+++ b/strconv/numeric.ha
@@ -51,9 +51,9 @@ export fn unsignedtosb(n: types::unsigned, b: base) const str = {
[message trimmed]

[PATCH hare-ev] Correct documentation for connect_{tcp,unix} 5 days ago

From Alexey Yerin to ~sircmpwn/hare-dev

After saying that user data can be omitted, it should be actually omitted in
the example.
---
 ev/+linux/socket.ha | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ev/+linux/socket.ha b/ev/+linux/socket.ha
index ef7b3f6..6df05ef 100644
--- a/ev/+linux/socket.ha
+++ b/ev/+linux/socket.ha
@@ -74,7 +74,7 @@ export type connectcb = fn(result: (*file | net::error), user: nullable *opaque)
//
// If you don't need a user data object you can just omit it:
//
[message trimmed]

[PATCH himitsu 2/2] himitsu::client: Return a parsed query instead of a string from next 6 days ago

From Alexey Yerin to ~sircmpwn/himitsu-devel

This is much more useful to most programs interacting with himitsu that don't
need to output keys as-is.

Unfortunately, this will require updating all code that uses himitsu::client.
---
 cmd/hiq/main.ha          | 12 ++++--------
 himitsu/client/client.ha | 10 ++++++++--
 2 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/cmd/hiq/main.ha b/cmd/hiq/main.ha
index 5e6191e..93b1404 100644
--- a/cmd/hiq/main.ha
+++ b/cmd/hiq/main.ha
@@ -132,7 +132,7 @@ fn send(
[message trimmed]

[PATCH himitsu 1/2] himitsu::query: Add parse_str convenience function 6 days ago

From Alexey Yerin to ~sircmpwn/himitsu-devel

---
 cmd/hiq/main.ha        | 14 +++++++++-----
 himitsu/query/parse.ha |  7 ++++++-
 2 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/cmd/hiq/main.ha b/cmd/hiq/main.ha
index a6dc518..5e6191e 100644
--- a/cmd/hiq/main.ha
+++ b/cmd/hiq/main.ha
@@ -82,14 +82,18 @@ export fn main() void = {
			case let line: []u8 =>
				// NB. Can't defer free(line), causes a
				// use-after-free in fmt::fatal
				const query = memio::fixed(line);
[message trimmed]

[PATCH himitsu] himitsu::query: Use sort::cmp::strs 6 days ago

From Alexey Yerin to ~sircmpwn/himitsu-devel

---
 himitsu/query/parse.ha | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/himitsu/query/parse.ha b/himitsu/query/parse.ha
index 2a91849..74aa3e5 100644
--- a/himitsu/query/parse.ha
+++ b/himitsu/query/parse.ha
@@ -4,6 +4,7 @@ use encoding::utf8;
use io;
use regex;
use shlex;
use sort::cmp;
use sort::{sort};
[message trimmed]

Re: [PATCH hare] cmd/hare: replace version subcommand with -v flag 20 days ago

From Alexey Yerin to ~sircmpwn/hare-dev

On Wed Nov 15, 2023 at 16:03 MSK, Ember Sawady wrote:
> diff --git a/cmd/hare/main.ha b/cmd/hare/main.ha
> index bb06e3c9..57f7df26 100644
> --- a/cmd/hare/main.ha
> +++ b/cmd/hare/main.ha
>  export fn main() void = {
>  	const cmd = getopt::parse(os::args, help...);
>  	defer getopt::finish(&cmd);
> +
> +	let v = 0z;
> +	for (let i = 0z; i < len(cmd.opts); i += 1) switch (cmd.opts[i].0) {
> +	case 'v' => v += 1;
> +	case => abort(); // unreachable
> +	};

Re: [PATCH hare] types::c: add unterminatedstr 24 days ago

From Alexey Yerin to ~sircmpwn/hare-dev

On Sun Nov 12, 2023 at 15:31 MSK, Alexey Yerin wrote:
> [...] I think this should be documented in the prototype.

Oops, I meant mentioned in the docstring.