Jose Garcia
151eb2b656
fix linter
2021-08-26 08:35:30 -04:00
Gabriel Ramírez
a48f1070c3
Merge pull request #86 from github/auto-ssh-composition
...
Piping support for ssh and code
2021-08-25 09:11:43 -05:00
Mislav Marohnić
11fbb60ae7
Rename the module to "github.com/cli/cli/v2"
2021-08-25 12:41:30 +02:00
Jose Garcia
2ef6e95982
show status under a flag
2021-08-24 20:15:21 -04:00
Jose Garcia
46ee45bcdd
simplify the state iteration
2021-08-24 17:46:24 -04:00
Gabriel Ramirez
30be4c98f9
Send codespace name to Stdout to enable scripting
2021-08-24 13:12:18 -05:00
Josh Gross
ae88091fd8
Replace options struct with variable
2021-08-23 12:01:13 -04:00
Mislav Marohnić
af2aecd40b
Merge pull request #4146 from cli/force-tty
...
Add ability to force terminal-style output even when redirected
2021-08-23 16:46:14 +02:00
Mislav Marohnić
8129fb3d3e
Merge pull request #4171 from mahdyar/chore/make-gh-status-clickable
...
chore: make gh status link clickable
2021-08-23 13:12:35 +02:00
Mahdyar Hasanpour
db74830e64
chore: make gh status clickable
...
Adding https:// to githubstatus.com to make it clickable on terminal emulators
2021-08-22 18:01:55 +04:30
Josh Gross
530c0244f9
Add support to code for VS Code Insiders
2021-08-19 17:37:57 -04:00
Mislav Marohnić
51d609078b
Enable gh help <command> for extensions
...
This sends the `--help` flag to the extension. The extension is
reponsible for printing something useful as a result.
2021-08-19 20:38:19 +02:00
Jose Garcia
55f0dad3db
merge upstream
2021-08-19 18:30:10 +00:00
Issy Long
a53eb53ad4
cmd/ghcs/ports: Fix usage docs for the new source:forward syntax
...
Co-authored-by: George Brocklehurst <georgebrock@github.com>
2021-08-19 10:10:30 +01:00
Issy Long
28a3644a07
cmd/ghcs/delete: I learnt about strings.EqualFold - thanks, linter!
2021-08-18 18:15:15 +01:00
Issy Long
5af1cccb73
cmd/ghcs/delete: When matching repos to delete, standardize casing
...
- It was possible to delete Codespaces for repo `SomePerson/foo` but not
`someperson/foo`, despite the fact that the GitHub APIs don't actually
care about casing - `SomePerson` and `someperson` is the same account.
- This fixes that by lowercasing both the user-provided repo name, and
the repository that is attached to the Codespace for a match.
- Fixes #76 .
2021-08-18 18:11:11 +01:00
Mislav Marohnić
321fd98f82
Add ability to force terminal-style output even when redirected
2021-08-17 20:12:25 +02:00
Jose Garcia
8533d08461
rename var
2021-08-17 13:07:40 +00:00
Jose Garcia
b5670252de
small update to description
2021-08-17 12:58:46 +00:00
Jose Garcia
5fe84c6121
merge upstream
2021-08-17 12:57:04 +00:00
Mislav Marohnić
517aae2805
Merge remote-tracking branch 'origin' into docs
2021-08-17 14:42:09 +02:00
Mislav Marohnić
6dd0bf8e5e
Merge pull request #67 from github/jg/output-formats
...
add back . indicators & update ConnectToTunnel
2021-08-17 13:07:14 +02:00
Mislav Marohnić
b47686163a
Fixes for log/output streams
2021-08-17 13:04:55 +02:00
Mislav Marohnić
5e472bc0e5
Improve command descriptions and argument assertions
2021-08-16 23:24:11 +02:00
Mislav Marohnić
97d8285b58
Do not require GITHUB_TOKEN for merely viewing command help
2021-08-16 23:19:20 +02:00
Mislav Marohnić
22be26431e
Have --codespace <name> flag be consistent across commands
2021-08-16 22:31:29 +02:00
Jose Garcia
c9c1ff8dac
add back . indicators & update ConnectToTunnel
2021-08-16 20:16:50 +00:00
Mislav Marohnić
20d75f0ff9
Normalize logging, output, and error reporting
...
- Return errors as errors, not print to stdout and return nil
- Ensure errors and warnings are always written to stderr, not stout
- Do not print progress to stdout unless stdout is a terminal
2021-08-12 14:37:23 +02:00
Mislav Marohnić
41e223869e
Fix mapping port numbers to labels
2021-08-12 14:37:06 +02:00
Mislav Marohnić
db95f2f71f
Add machine-readable output functionality to ports command
2021-08-12 14:35:49 +02:00
Mislav Marohnić
7a9d1fc331
Merge remote-tracking branch 'origin/main' into output-formats
2021-08-11 12:13:09 +02:00
Jose Garcia
619862a46b
initial spike for multiple port support
2021-08-05 15:21:26 +00:00
Issy Long
4362b0b241
cmd/ghcs/delete: Display the interactive menu when there are no args
...
- Currently the flow to delete a single Codespace is `gh cs list`, copy
and paste the Codespace name onto the end of `gh cs delete`.
- This improves consistency with other commands by letting the user
choose which Codespace they want to delete, interactively. A Codespace
name on the command-line still works too.
2021-08-05 15:00:18 +01:00
Jose Garcia
76aca39f5b
Create status support
2021-08-04 17:35:11 +00:00
Mislav Marohnić
140a54a009
Add machine-readable output formats
...
- Default table output (when stdout is attached to a terminal) stays the same;
- When stdout is redirected, output tab-separated values and no header line;
- With `--json` flag, output structured JSON data.
Example:
$ ghcs list --json
[
{
"Branch": "main",
"Created At": "2021-06-10T15:04:46+02:00",
"Name": "mislav-playground-jvqj",
"Repository": "mislav/playground",
"State": "Shutdown"
},
{
"Branch": "master",
"Created At": "2021-07-15T15:51:08+02:00",
"Name": "mislav-github-github-pwgg365xv",
"Repository": "github/github",
"State": "Shutdown"
}
]
2021-08-04 15:58:27 +02:00
Jose Garcia
70f4a7b4b5
Re-introduce secrets export
2021-08-04 13:19:00 +00:00
Jose Garcia
d5003334e3
Remove secrets export
2021-08-03 13:43:09 +00:00
Jose Garcia
e57b390d4a
dotfiles status spike
2021-08-03 13:42:34 +00:00
Jose Garcia
be794f1579
creation log support for cat and tail
2021-07-29 17:09:50 +00:00
Jose Garcia
58a055609d
logs cmd spike and refactor of ssh tunnel methods
2021-07-29 10:57:51 -04:00
Mislav Marohnić
0d999ddaa1
Rework local extensions for Windows
...
Replace the implementation that relied on symlinks with the one that
create regular files that act like symlinks: they contain a reference to
the local directory where to find the extension.
2021-07-28 22:47:54 +02:00
Jose Garcia
cba40ad72a
liveshare client upgrade
2021-07-28 08:33:06 -04:00
Mislav Marohnić
3931c16bd7
Provide version number at build time
2021-07-26 17:07:42 +02:00
Issy Long
c092a29350
cmd/ghcs/ssh: Add -c parameter for specifying a Codespace to SSH to
...
- This adds a `-c`, `--codespace` parameter to `ghcs ssh` to allow for
non-interactively specifying a Codespace to SSH into, for instance if
a user has recently done `ghcs list` and already knows which Codespace
they want to access. Without a value for the `-c` parameter, the
interactive prompt appears as usual.
2021-07-26 14:58:48 +01:00
CamiloGarciaLaRotta
7e49db3be3
config: bump to 0.7.1
...
Hoping to prove that Goreleaser & Homebrew run automatically
2021-07-22 10:33:00 -04:00
CamiloGarciaLaRotta
f35186485c
Merge pull request #31 from github/feat/promptless-create
...
feat: introduce repo, branch and machine flags for ghcs create
2021-07-22 10:18:03 -04:00
Camilo Garcia La Rotta
14468baba6
config: bump to v0.7.0
2021-07-22 10:13:20 -04:00
CamiloGarciaLaRotta
89cf916e23
Merge branch 'main' into feat/promptless-create
2021-07-22 10:09:21 -04:00
Camilo Garcia La Rotta
3ef0226e20
fix: output available machine names on --machine error
2021-07-22 10:07:09 -04:00
CamiloGarciaLaRotta
2f467e3ddc
Merge branch 'main' into feat/richer-delete
2021-07-22 09:55:20 -04:00