From 4e017f1618432f0e48a204c191ffd72f277f2db7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20L=2E=20Hansen?= Date: Sat, 10 Apr 2021 21:39:41 -0700 Subject: [PATCH] Take over GoTTY maintainership @yudai built this amazing piece of software, but it now needs a new, active maintainer. I'm taking a stab at it. --- CONTRIBUTING.md | 2 +- LICENSE | 1 + Makefile | 2 +- README.md | 18 ++++++++---------- backend/localcommand/factory.go | 2 +- go.mod | 2 +- main.go | 8 ++++---- server/handlers.go | 2 +- server/server.go | 8 ++++---- server/slave.go | 2 +- utils/flags.go | 2 +- 11 files changed, 24 insertions(+), 25 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 191bbf9..7bde74c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -41,4 +41,4 @@ When your pull request is to add a new feature, we recommend add an actual useca ## Contact -If you have a trivial question about GoTTY for a bug or new feature, you can contact @i_yudai on Twitter (unfortunately, I cannot provide support on GoTTY though). +If you have a trivial question about GoTTY for a bug or new feature, you can contact @sorenisanerd on Twitter (unfortunately, I cannot provide support on GoTTY though). diff --git a/LICENSE b/LICENSE index e93081f..85d168d 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,7 @@ The MIT License (MIT) Copyright (c) 2015-2017 Iwasaki Yudai +Copyright (c) 2021 Søren L. Hansen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/Makefile b/Makefile index c630499..2e844ba 100644 --- a/Makefile +++ b/Makefile @@ -80,6 +80,6 @@ shasums: cd ${OUTPUT_DIR}/dist; sha256sum * > ./SHA256SUMS release: - ghr -c ${GIT_COMMIT} --delete --prerelease -u yudai -r gotty pre-release ${OUTPUT_DIR}/dist + ghr -c ${GIT_COMMIT} --delete --prerelease -u sorenisanerd -r gotty pre-release ${OUTPUT_DIR}/dist clean: rm -fr gotty diff --git a/README.md b/README.md index 0b9f93d..3040e71 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,18 @@ -# ![](https://raw.githubusercontent.com/yudai/gotty/master/resources/favicon.png) GoTTY - Share your terminal as a web application +# ![](https://raw.githubusercontent.com/sorenisanerd/gotty/master/resources/favicon.png) GoTTY - Share your terminal as a web application -[![GitHub release](http://img.shields.io/github/release/yudai/gotty.svg?style=flat-square)][release] -[![Wercker](http://img.shields.io/wercker/ci/55d0eeff7331453f0801982c.svg?style=flat-square)][wercker] +[![GitHub release](http://img.shields.io/github/release/sorenisanerd/gotty.svg?style=flat-square)][release] [![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)][license] -[release]: https://github.com/yudai/gotty/releases -[wercker]: https://app.wercker.com/project/bykey/03b91f441bebeda34f80e09a9f14126f -[license]: https://github.com/yudai/gotty/blob/master/LICENSE +[release]: https://github.com/sorenisanerd/gotty/releases +[license]: https://github.com/sorenisanerd/gotty/blob/master/LICENSE GoTTY is a simple command line tool that turns your CLI tools into web applications. -![Screenshot](https://raw.githubusercontent.com/yudai/gotty/master/screenshot.gif) +![Screenshot](https://raw.githubusercontent.com/sorenisanerd/gotty/master/screenshot.gif) # Installation -Download the latest stable binary file from the [Releases](https://github.com/yudai/gotty/releases) page. Note that the release marked `Pre-release` is built for testing purpose, which can include unstable or breaking changes. Download a release marked [Latest release](https://github.com/yudai/gotty/releases/latest) for a stable build. +Download the latest stable binary file from the [Releases](https://github.com/sorenisanerd/gotty/releases) page. Note that the release marked `Pre-release` is built for testing purpose, which can include unstable or breaking changes. Download a release marked [Latest release](https://github.com/sorenisanerd/gotty/releases/latest) for a stable build. (Files named with `darwin_amd64` are for Mac OS X users) @@ -31,7 +29,7 @@ $ brew install yudai/gotty/gotty If you have a Go language environment, you can install GoTTY with the `go get` command. However, this command builds a binary file from the latest master branch, which can include unstable or breaking changes. GoTTY requires go1.9 or later. ```sh -$ go get github.com/yudai/gotty +$ go get github.com/sorenisanerd/gotty ``` # Usage @@ -94,7 +92,7 @@ preferences { } ``` -See the [`.gotty`](https://github.com/yudai/gotty/blob/master/.gotty) file in this repository for the list of configuration options. +See the [`.gotty`](https://github.com/sorenisanerd/gotty/blob/master/.gotty) file in this repository for the list of configuration options. ### Security Options diff --git a/backend/localcommand/factory.go b/backend/localcommand/factory.go index 11810ed..9d0c916 100644 --- a/backend/localcommand/factory.go +++ b/backend/localcommand/factory.go @@ -4,7 +4,7 @@ import ( "syscall" "time" - "github.com/yudai/gotty/server" + "github.com/sorenisanerd/gotty/server" ) type Options struct { diff --git a/go.mod b/go.mod index 2a9cb80..d377bae 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/yudai/gotty +module github.com/sorenisanerd/gotty go 1.13 diff --git a/main.go b/main.go index 5c7dede..b8ebc8d 100644 --- a/main.go +++ b/main.go @@ -11,10 +11,10 @@ import ( "github.com/urfave/cli" - "github.com/yudai/gotty/backend/localcommand" - "github.com/yudai/gotty/pkg/homedir" - "github.com/yudai/gotty/server" - "github.com/yudai/gotty/utils" + "github.com/sorenisanerd/gotty/backend/localcommand" + "github.com/sorenisanerd/gotty/pkg/homedir" + "github.com/sorenisanerd/gotty/server" + "github.com/sorenisanerd/gotty/utils" ) func main() { diff --git a/server/handlers.go b/server/handlers.go index f1a2f9b..4eb5e02 100644 --- a/server/handlers.go +++ b/server/handlers.go @@ -13,7 +13,7 @@ import ( "github.com/gorilla/websocket" "github.com/pkg/errors" - "github.com/yudai/gotty/webtty" + "github.com/sorenisanerd/gotty/webtty" ) func (server *Server) generateHandleWS(ctx context.Context, cancel context.CancelFunc, counter *counter) http.HandlerFunc { diff --git a/server/server.go b/server/server.go index b32e769..434e1d3 100644 --- a/server/server.go +++ b/server/server.go @@ -14,13 +14,13 @@ import ( "time" "github.com/NYTimes/gziphandler" - "github.com/elazarl/go-bindata-assetfs" + assetfs "github.com/elazarl/go-bindata-assetfs" "github.com/gorilla/websocket" "github.com/pkg/errors" - "github.com/yudai/gotty/pkg/homedir" - "github.com/yudai/gotty/pkg/randomstring" - "github.com/yudai/gotty/webtty" + "github.com/sorenisanerd/gotty/pkg/homedir" + "github.com/sorenisanerd/gotty/pkg/randomstring" + "github.com/sorenisanerd/gotty/webtty" ) // Server provides a webtty HTTP endpoint. diff --git a/server/slave.go b/server/slave.go index 77d0973..52cd9fe 100644 --- a/server/slave.go +++ b/server/slave.go @@ -1,7 +1,7 @@ package server import ( - "github.com/yudai/gotty/webtty" + "github.com/sorenisanerd/gotty/webtty" ) // Slave is webtty.Slave with some additional methods. diff --git a/utils/flags.go b/utils/flags.go index cf5c544..a37c870 100644 --- a/utils/flags.go +++ b/utils/flags.go @@ -11,7 +11,7 @@ import ( "github.com/urfave/cli" "github.com/yudai/hcl" - "github.com/yudai/gotty/pkg/homedir" + "github.com/sorenisanerd/gotty/pkg/homedir" ) func GenerateFlags(options ...interface{}) (flags []cli.Flag, mappings map[string]string, err error) {