From d0690bc7d6debe66d3b34496f1a3ccd2e3233584 Mon Sep 17 00:00:00 2001 From: "yakumo.izuru" Date: Mon, 16 Oct 2023 13:31:55 +0000 Subject: [PATCH] Rename command to toyohime Signed-off-by: Izuru Yakumo git-svn-id: file:///srv/svn/repo/toyohime/trunk@112 922d331f-388e-da47-97a9-ad700dc0b8b9 --- .drone.yml | 25 ------------------- .travis.yml | 14 ----------- LICENSE | 1 + Makefile | 12 ++++----- README.md | 6 ----- cmd/{yorihime => toyohime}/README.md | 7 +++--- cmd/{yorihime => toyohime}/dynamic_handler.go | 0 cmd/{yorihime => toyohime}/main.go | 5 ++-- go.sum | 4 --- 9 files changed, 12 insertions(+), 62 deletions(-) delete mode 100644 .drone.yml delete mode 100644 .travis.yml rename cmd/{yorihime => toyohime}/README.md (57%) rename cmd/{yorihime => toyohime}/dynamic_handler.go (100%) rename cmd/{yorihime => toyohime}/main.go (97%) diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index b814faa..0000000 --- a/.drone.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- -kind: pipeline -name: default - -platform: - os: linux - arch: amd64 - -steps: -- name: build - image: golang:latest - commands: - - go test ./... - - go build ./... - -- name: docker - image: plugins/docker - settings: - repo: jonnrb/vanityserver - username: - from_secret: docker_username - password: - from_secret: docker_password - -... diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f31891d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -dist: trusty -language: go -go_import_path: kkn.fi/vanity -go: 1.9.x -jobs: - include: - - stage: lint - script: - - ./ci/validate-gofmt.sh - - go get -u github.com/golang/lint/golint - - ./ci/lint.sh - - stage: test - script: go test kkn.fi/vanity - install: skip diff --git a/LICENSE b/LICENSE index 79353b0..d101e81 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,5 @@ Copyright (c) 2018, Jon Betti +Copyright (c) 2023, Izuru Yakumo Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice diff --git a/Makefile b/Makefile index ff50c9f..349a778 100644 --- a/Makefile +++ b/Makefile @@ -10,15 +10,15 @@ BUILD = `git show -s --pretty=format:%cI` GOARCH ?= amd64 GOOS ?= linux -all: yorihime +all: toyohime -yorihime: - ${GO} build ${GOFLAGS} ./cmd/yorihime +toyohime: + ${GO} build ${GOFLAGS} ./cmd/toyohime clean: - rm yorihime + rm toyohime install: - install -m0755 yorihime $(PREFIX)/bin/yorihime + install -m0755 toyohime $(PREFIX)/bin/yorihime test: ${GO} test . uninstall: - rm -f $(PREFIX)/bin/yorihime + rm -f $(PREFIX)/bin/toyohime diff --git a/README.md b/README.md index a491b37..56f9bd1 100644 --- a/README.md +++ b/README.md @@ -23,9 +23,3 @@ go get marisa.chaotic.ninja/toyohime - [Remote Import Paths](https://golang.org/cmd/go/#hdr-Remote_import_paths) - [GDDO Source Code Links](https://github.com/golang/gddo/wiki/Source-Code-Links) - [Custom Import Path Checking](https://docs.google.com/document/d/1jVFkZTcYbNLaTxXD9OcGfn7vYv5hWtPx9--lTx1gPMs/edit) - -## See also -* [Yorihime](cmd/yorihime/README.md) - - -(Both characters are from Touhou Project) diff --git a/cmd/yorihime/README.md b/cmd/toyohime/README.md similarity index 57% rename from cmd/yorihime/README.md rename to cmd/toyohime/README.md index 04964db..0bf7f81 100644 --- a/cmd/yorihime/README.md +++ b/cmd/toyohime/README.md @@ -1,11 +1,11 @@ -# Yorihime +# Toyohime (command) Runs a barebones vanity server over HTTP. ## Usage ``` -./yorihime [-index] fqdn [repo file] +./toyohime [-index] fqdn [repo file] ``` The "-index" flag enables an index page at "/" that lists all repos hosted on @@ -18,5 +18,4 @@ pkgroot vcsScheme://vcsHost/user/repo pkgroot2 vcsScheme://vcsHost/user/repo2 ``` -vcsHost is either a Gogs server (that's what I use) or github.com. I'm open to -supporting other VCSs but I'm not sure what that would look like. +vcsHost is either a [Gogs](https://gogs.io) server (that's what I use) or [GitHub](https://github.com). I'm open to supporting other VCSs but I'm not sure what that would look like. diff --git a/cmd/yorihime/dynamic_handler.go b/cmd/toyohime/dynamic_handler.go similarity index 100% rename from cmd/yorihime/dynamic_handler.go rename to cmd/toyohime/dynamic_handler.go diff --git a/cmd/yorihime/main.go b/cmd/toyohime/main.go similarity index 97% rename from cmd/yorihime/main.go rename to cmd/toyohime/main.go index ad335ad..2204d40 100644 --- a/cmd/yorihime/main.go +++ b/cmd/toyohime/main.go @@ -3,7 +3,7 @@ Runs a barebones vanity server over HTTP. Usage - ./yorihime [-index] [-nohealthz] fqdn [repo file] + ./toyohime [-index] [-nohealthz] fqdn [repo file] The "-index" flag enables an index page at "/" that lists all repos hosted on this server. @@ -277,7 +277,6 @@ func main() { srv := buildServer(h) - log.Printf("starting yorihime %v on port %v\n", toyohime.FullVersion(), *listenPort) - log.Println("gotta take care of those moon rabbits!") + log.Printf("starting toyohime %v on port %v\n", toyohime.FullVersion(), *listenPort) log.Println(srv.ListenAndServe()) } diff --git a/go.sum b/go.sum index ed7f31b..b12c1ed 100644 --- a/go.sum +++ b/go.sum @@ -1,8 +1,4 @@ -github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I= -github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -golang.org/x/sys v0.0.0-20181221143128-b4a75ba826a6 h1:IcgEB62HYgAhX0Nd/QrVgZlxlcyxbGQHElLUhW2X4Fo= -golang.org/x/sys v0.0.0-20181221143128-b4a75ba826a6/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9 h1:L2auWcuQIvxz9xSEqzESnV/QN/gNRXNApHi3fYwl2w0= golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=