Rename command to toyohime

Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>

git-svn-id: file:///srv/svn/repo/toyohime/trunk@112 922d331f-388e-da47-97a9-ad700dc0b8b9
This commit is contained in:
yakumo.izuru 2023-10-16 13:31:55 +00:00
parent 7eea1aca21
commit d0690bc7d6
9 changed files with 12 additions and 62 deletions

View File

@ -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
...

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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.

View File

@ -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())
}

4
go.sum
View File

@ -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=