github / github/gh-classroom

Feature request: When opening assignment list in a browser, URL should also be outputted, similar to gh auth login, in case terminal is headless

Open
#21 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
125
Forks
21
PR merge metrics
No merged PRs in 30d

Description

E.g.:

```
$ gh classroom assignments --web
? Select a classroom: Introduction to Game Development
22 Assignments for Introduction to Game Development

Opening in your browser.
```

Versus:

```
$ gh auth login
? You're already logged into github.com. Do you want to re-authenticate? Yes
? What is your preferred protocol for Git operations? HTTPS
? How would you like to authenticate GitHub CLI? Login with a web browser

! First copy your one-time code: 306B-9B4C
Press Enter to open github.com in your browser...
! Failed opening a web browser at https://github.com/login/device
exec: "xdg-open,x-www-browser,www-browser,wslview": executable file not found in $PATH
Please try entering the URL in your browser manually
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.