~sircmpwn/himitsu-git

3e6d6786cb74f985a671040a6f506be3306e6042 — Alexey Yerin 6 months ago 7146bdb 0.2.0
cmd/git-credential-himitsu: Update for himitsu::client changes
1 files changed, 1 insertions(+), 5 deletions(-)

M cmd/git-credential-himitsu/main.ha
M cmd/git-credential-himitsu/main.ha => cmd/git-credential-himitsu/main.ha +1 -5
@@ 3,7 3,6 @@ use fmt;
use himitsu::client;
use himitsu::query;
use io;
use memio;
use net;
use os;
use strings;


@@ 89,16 88,13 @@ export fn main() void = {

	// TODO: Should we detect multiple matching keys?
	const key = match (client::next(&keys)) {
	case let s: const str =>
	case let s: query::query =>
		yield s;
	case let err: client::error =>
		fmt::fatal("Error:", client::strerror(err));
	case void =>
		return;
	};

	const source = memio::fixed(strings::toutf8(key));
	const key = query::parse(&source)!;
	defer query::finish(&q);

	for (let i = 0z; i < len(key.items); i += 1) {