Skip to content

Commit 4600226

Browse files
committed
Fork gh spec into vscode
1 parent 10219e2 commit 4600226

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

extensions/terminal-suggest/src/completions/upstream/gh.ts renamed to extensions/terminal-suggest/src/completions/gh.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
import { filepaths } from '../../helpers/filepaths'; import { keyValue } from '../../helpers/keyvalue';
1+
/*---------------------------------------------------------------------------------------------
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for license information.
4+
*--------------------------------------------------------------------------------------------*/
5+
6+
import { filepaths } from '../../helpers/filepaths';
7+
import { keyValue } from '../../helpers/keyvalue';
28

39
const filterMessages = (out: string): string => {
410
return out.startsWith("warning:") || out.startsWith("error:")
@@ -1574,8 +1580,8 @@ Pass additional 'git clone' flags by listing them after '--'`,
15741580
To create a repository interactively, use 'gh repo create' with no arguments.
15751581
To create a remote repository non-interactively, supply the repository name and one of '--public', '--private', or '--internal'.
15761582
Pass '--clone' to clone the new repository locally.
1577-
To create a remote repository from an existing local repository, specify the source directory with '--source'.
1578-
By default, the remote repository name will be the name of the source directory.
1583+
To create a remote repository from an existing local repository, specify the source directory with '--source'.
1584+
By default, the remote repository name will be the name of the source directory.
15791585
Pass '--push' to push any local commits to the new repository`,
15801586
args: {
15811587
name: "name",
@@ -1726,7 +1732,7 @@ Pass '--push' to push any local commits to the new repository`,
17261732
name: "delete",
17271733
description: `Delete a GitHub repository.
17281734
With no argument, deletes the current repository. Otherwise, deletes the specified repository.
1729-
Deletion requires authorization with the "delete_repo" scope.
1735+
Deletion requires authorization with the "delete_repo" scope.
17301736
To authorize, run "gh auth refresh -s delete_repo"`,
17311737
isDangerous: true,
17321738
args: {
@@ -2003,7 +2009,7 @@ By default, this renames the current repository; otherwise renames the specified
20032009
of the source repository to update the matching branch on the destination
20042010
repository so they are equal. A fast forward update will be used execept when the
20052011
'--force' flag is specified, then the two branches will
2006-
by synced using a hard reset.
2012+
by synced using a hard reset.
20072013
Without an argument, the local repository is selected as the destination repository.
20082014
The source repository is the parent of the destination repository by default.
20092015
This can be overridden with the '--source' flag`,

extensions/terminal-suggest/src/constants.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ export const upstreamSpecs = [
9595
'nano',
9696
'vim',
9797

98-
// SCM
99-
'gh',
100-
10198
// Shells
10299
'ssh',
103100

0 commit comments

Comments
 (0)