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:
parent
7eea1aca21
commit
d0690bc7d6
25
.drone.yml
25
.drone.yml
@ -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
|
|
||||||
|
|
||||||
...
|
|
14
.travis.yml
14
.travis.yml
@ -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
|
|
1
LICENSE
1
LICENSE
@ -1,4 +1,5 @@
|
|||||||
Copyright (c) 2018, Jon Betti
|
Copyright (c) 2018, Jon Betti
|
||||||
|
Copyright (c) 2023, Izuru Yakumo
|
||||||
|
|
||||||
Permission to use, copy, modify, and/or distribute this software for any purpose
|
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
|
with or without fee is hereby granted, provided that the above copyright notice
|
||||||
|
12
Makefile
12
Makefile
@ -10,15 +10,15 @@ BUILD = `git show -s --pretty=format:%cI`
|
|||||||
GOARCH ?= amd64
|
GOARCH ?= amd64
|
||||||
GOOS ?= linux
|
GOOS ?= linux
|
||||||
|
|
||||||
all: yorihime
|
all: toyohime
|
||||||
|
|
||||||
yorihime:
|
toyohime:
|
||||||
${GO} build ${GOFLAGS} ./cmd/yorihime
|
${GO} build ${GOFLAGS} ./cmd/toyohime
|
||||||
clean:
|
clean:
|
||||||
rm yorihime
|
rm toyohime
|
||||||
install:
|
install:
|
||||||
install -m0755 yorihime $(PREFIX)/bin/yorihime
|
install -m0755 toyohime $(PREFIX)/bin/yorihime
|
||||||
test:
|
test:
|
||||||
${GO} test .
|
${GO} test .
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f $(PREFIX)/bin/yorihime
|
rm -f $(PREFIX)/bin/toyohime
|
||||||
|
@ -23,9 +23,3 @@ go get marisa.chaotic.ninja/toyohime
|
|||||||
- [Remote Import Paths](https://golang.org/cmd/go/#hdr-Remote_import_paths)
|
- [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)
|
- [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)
|
- [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)
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
# Yorihime
|
# Toyohime (command)
|
||||||
|
|
||||||
Runs a barebones vanity server over HTTP.
|
Runs a barebones vanity server over HTTP.
|
||||||
|
|
||||||
## Usage
|
## 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
|
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
|
pkgroot2 vcsScheme://vcsHost/user/repo2
|
||||||
```
|
```
|
||||||
|
|
||||||
vcsHost is either a Gogs server (that's what I use) or github.com. I'm open to
|
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.
|
||||||
supporting other VCSs but I'm not sure what that would look like.
|
|
@ -3,7 +3,7 @@ Runs a barebones vanity server over HTTP.
|
|||||||
|
|
||||||
Usage
|
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
|
The "-index" flag enables an index page at "/" that lists all repos hosted on
|
||||||
this server.
|
this server.
|
||||||
@ -277,7 +277,6 @@ func main() {
|
|||||||
|
|
||||||
srv := buildServer(h)
|
srv := buildServer(h)
|
||||||
|
|
||||||
log.Printf("starting yorihime %v on port %v\n", toyohime.FullVersion(), *listenPort)
|
log.Printf("starting toyohime %v on port %v\n", toyohime.FullVersion(), *listenPort)
|
||||||
log.Println("gotta take care of those moon rabbits!")
|
|
||||||
log.Println(srv.ListenAndServe())
|
log.Println(srv.ListenAndServe())
|
||||||
}
|
}
|
4
go.sum
4
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 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4=
|
||||||
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
|
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 h1:L2auWcuQIvxz9xSEqzESnV/QN/gNRXNApHi3fYwl2w0=
|
||||||
golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
Loading…
x
Reference in New Issue
Block a user