~xdavidwu/himitsu-docker

417b08ad3ad36bf69cb2e336c3dbf3d6b17a585a — Pinghao Wu 1 year, 14 days ago 0695360
update for newer stdlib
2 files changed, 6 insertions(+), 3 deletions(-)

M cmd/docker-credential-himitsu/erase.ha
M cmd/docker-credential-himitsu/get.ha
M cmd/docker-credential-himitsu/erase.ha => cmd/docker-credential-himitsu/erase.ha +3 -2
@@ 3,10 3,11 @@ use himitsu::client;
use himitsu::query;
use net;
use os;
use strings;

fn erase(hi: net::socket) void = {
	const url = strings::fromutf8(bufio::scanline(os::stdin)! as []u8)!;
	const scanner = bufio::newscanner(os::stdin, os::BUFSZ);
	defer bufio::finish(&scanner);
	const url = bufio::scan_line(&scanner)! as const str;
	const query = query::query {
		items = [
			query::pair { key = "proto", value = "docker", private = false, optional = false},

M cmd/docker-credential-himitsu/get.ha => cmd/docker-credential-himitsu/get.ha +3 -1
@@ 9,7 9,9 @@ use shlex;
use strings;

fn get(hi: net::socket) void = {
	const url = strings::fromutf8(bufio::scanline(os::stdin)! as []u8)!;
	const scanner = bufio::newscanner(os::stdin, os::BUFSZ);
	defer bufio::finish(&scanner);
	const url = bufio::scan_line(&scanner)! as const str;
	const query = query::query {
		items = [
			query::pair { key = "proto", value = "docker", private = false, optional = false},