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.
This commit is contained in:
Søren L. Hansen 2021-04-10 21:39:41 -07:00
parent 6353624986
commit 4e017f1618
11 changed files with 24 additions and 25 deletions

View File

@ -41,4 +41,4 @@ When your pull request is to add a new feature, we recommend add an actual useca
## Contact ## 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).

View File

@ -1,6 +1,7 @@
The MIT License (MIT) The MIT License (MIT)
Copyright (c) 2015-2017 Iwasaki Yudai 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 Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@ -80,6 +80,6 @@ shasums:
cd ${OUTPUT_DIR}/dist; sha256sum * > ./SHA256SUMS cd ${OUTPUT_DIR}/dist; sha256sum * > ./SHA256SUMS
release: 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: clean:
rm -fr gotty rm -fr gotty

View File

@ -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] [![GitHub release](http://img.shields.io/github/release/sorenisanerd/gotty.svg?style=flat-square)][release]
[![Wercker](http://img.shields.io/wercker/ci/55d0eeff7331453f0801982c.svg?style=flat-square)][wercker]
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)][license] [![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)][license]
[release]: https://github.com/yudai/gotty/releases [release]: https://github.com/sorenisanerd/gotty/releases
[wercker]: https://app.wercker.com/project/bykey/03b91f441bebeda34f80e09a9f14126f [license]: https://github.com/sorenisanerd/gotty/blob/master/LICENSE
[license]: https://github.com/yudai/gotty/blob/master/LICENSE
GoTTY is a simple command line tool that turns your CLI tools into web applications. 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 # 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) (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. 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 ```sh
$ go get github.com/yudai/gotty $ go get github.com/sorenisanerd/gotty
``` ```
# Usage # 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 ### Security Options

View File

@ -4,7 +4,7 @@ import (
"syscall" "syscall"
"time" "time"
"github.com/yudai/gotty/server" "github.com/sorenisanerd/gotty/server"
) )
type Options struct { type Options struct {

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/yudai/gotty module github.com/sorenisanerd/gotty
go 1.13 go 1.13

View File

@ -11,10 +11,10 @@ import (
"github.com/urfave/cli" "github.com/urfave/cli"
"github.com/yudai/gotty/backend/localcommand" "github.com/sorenisanerd/gotty/backend/localcommand"
"github.com/yudai/gotty/pkg/homedir" "github.com/sorenisanerd/gotty/pkg/homedir"
"github.com/yudai/gotty/server" "github.com/sorenisanerd/gotty/server"
"github.com/yudai/gotty/utils" "github.com/sorenisanerd/gotty/utils"
) )
func main() { func main() {

View File

@ -13,7 +13,7 @@ import (
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
"github.com/pkg/errors" "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 { func (server *Server) generateHandleWS(ctx context.Context, cancel context.CancelFunc, counter *counter) http.HandlerFunc {

View File

@ -14,13 +14,13 @@ import (
"time" "time"
"github.com/NYTimes/gziphandler" "github.com/NYTimes/gziphandler"
"github.com/elazarl/go-bindata-assetfs" assetfs "github.com/elazarl/go-bindata-assetfs"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/yudai/gotty/pkg/homedir" "github.com/sorenisanerd/gotty/pkg/homedir"
"github.com/yudai/gotty/pkg/randomstring" "github.com/sorenisanerd/gotty/pkg/randomstring"
"github.com/yudai/gotty/webtty" "github.com/sorenisanerd/gotty/webtty"
) )
// Server provides a webtty HTTP endpoint. // Server provides a webtty HTTP endpoint.

View File

@ -1,7 +1,7 @@
package server package server
import ( import (
"github.com/yudai/gotty/webtty" "github.com/sorenisanerd/gotty/webtty"
) )
// Slave is webtty.Slave with some additional methods. // Slave is webtty.Slave with some additional methods.

View File

@ -11,7 +11,7 @@ import (
"github.com/urfave/cli" "github.com/urfave/cli"
"github.com/yudai/hcl" "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) { func GenerateFlags(options ...interface{}) (flags []cli.Flag, mappings map[string]string, err error) {