Add tea open #101

Merged
jolheiser merged 4 commits from lunny/tea:lunny/open into master 2020-04-01 03:22:30 +00:00
Owner

This pull request introduces a new command open. You can open something of the repository on your default web browser.

# open the home page of the repository on the default web browser
tea open 

# open the issues of the repository on the default web browser
tea open issues 

# open the issue/pull request number 1 of the repository on the default web browser
tea open 1

# open the pulls of the repository on the default web browser
tea open pulls

# open the releases of the repository on the default web browser
tea open releases

# open the branches of the repository on the default web browser
tea open branches

# open the wiki of the repository on the default web browser
tea open wiki

# open the activity of the repository on the default web browser
tea open activity

# open the settings of the repository on the default web browser
tea open settings

# open the commits of the current branch of the repository on the default web browser
tea open commits 

# open the labels of the repository on the default web browser
tea open labels

# open the milestones of the repository on the default web browser
tea open milestones
This pull request introduces a new command `open`. You can open something of the repository on your default web browser. ```shell # open the home page of the repository on the default web browser tea open # open the issues of the repository on the default web browser tea open issues # open the issue/pull request number 1 of the repository on the default web browser tea open 1 # open the pulls of the repository on the default web browser tea open pulls # open the releases of the repository on the default web browser tea open releases # open the branches of the repository on the default web browser tea open branches # open the wiki of the repository on the default web browser tea open wiki # open the activity of the repository on the default web browser tea open activity # open the settings of the repository on the default web browser tea open settings # open the commits of the current branch of the repository on the default web browser tea open commits # open the labels of the repository on the default web browser tea open labels # open the milestones of the repository on the default web browser tea open milestones ```
lunny added the
kind
feature
label 2020-03-05 13:22:26 +00:00
Member

Nice! Not sure about the command name though, maybe web or gui would be more descriptive?

Nice! Not sure about the command name though, maybe `web` or `gui` would be more descriptive?
lunny added this to the v0.3.0 milestone 2020-03-05 15:38:36 +00:00
Author
Owner

@noerw open is similiar the command it on macOS. It could open links/files/folders and etc. I still think open is a good word fo this feature.

@noerw `open` is similiar the command it on macOS. It could open links/files/folders and etc. I still think `open` is a good word fo this feature.
6543 requested changes 2020-03-31 14:30:10 +00:00
Dismissed
6543 left a comment
Owner

nice but one nit to bring it to live

nice but one nit to bring it to live
cmd/open.go Outdated
@ -0,0 +66,4 @@
suffix = number
}
u := login.URL + "/" + owner + "/" + repo + "/" + suffix
Owner

./tea open creates the url https://gitea.com//gitea/tea/ witch doesnt work :/

`./tea open` creates the url `https://gitea.com//gitea/tea/` witch doesnt work :/
Owner

/tea open 101 -> https://gitea.com//gitea/tea/issues/101

and so on - we should use somethinge like path.Join ...

`/tea open 101` -> `https://gitea.com//gitea/tea/issues/101` and so on - we should use somethinge like **path.Join** ...
Owner
# open the home page of the repository on the default web browser
tea open

does not work anymore .. path join works fine

@lunny

``` # open the home page of the repository on the default web browser tea open ``` does not work anymore .. path join works fine @lunny
Author
Owner

resolved.

# open the home page of the repository on the default web browser
tea open

does not work anymore .. path join works fine

@lunny

resolved. > ``` > # open the home page of the repository on the default web browser > tea open > ``` > > does not work anymore .. path join works fine > > @lunny
6543 approved these changes 2020-04-01 03:18:02 +00:00
Dismissed
jolheiser approved these changes 2020-04-01 03:21:33 +00:00
Dismissed
jolheiser closed this pull request 2020-04-01 03:22:28 +00:00
Sign in to join this conversation.
No description provided.