Skip to content

Commit 24bdf9d

Browse files
guplemclaude
andcommitted
Rename CLI command from github-desktop-plus-cli to github-plus
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b135b0a commit 24bdf9d

15 files changed

Lines changed: 19 additions & 19 deletions

File tree

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
/app/test/fixtures/** -text
2-
/app/static/win32/github-desktop-plus-cli.sh eol=lf
2+
/app/static/win32/github-plus.sh eol=lf

app/src/cli/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ const args = parse(process.argv.slice(2), {
4141
const usage = (exitCode = 1): never => {
4242
process.stderr.write(
4343
'GitHub Desktop Plus CLI usage: \n' +
44-
' github-desktop-plus-cli Open the current directory\n' +
45-
' github-desktop-plus-cli open [path] Open the provided path\n' +
46-
' github-desktop-plus-cli clone [-b branch] <url> Clone the repository by url or name/owner\n' +
44+
' github-plus Open the current directory\n' +
45+
' github-plus open [path] Open the provided path\n' +
46+
' github-plus clone [-b branch] <url> Clone the repository by url or name/owner\n' +
4747
' (ex torvalds/linux), optionally checking\n' +
4848
' out the branch\n'
4949
)

app/src/main-process/squirrel-updater.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ function resolveVersionedPath(binPath: string, relativePath: string): string {
9999
function writeBatchScriptCLITrampoline(binPath: string): Promise<void> {
100100
const versionedPath = resolveVersionedPath(
101101
binPath,
102-
'resources/app/static/github-desktop-plus-cli.bat'
102+
'resources/app/static/github-plus.bat'
103103
)
104104

105105
const trampoline = `@echo off\n"%~dp0\\${versionedPath}" %*`
106-
const trampolinePath = Path.join(binPath, 'github-desktop-plus-cli.bat')
106+
const trampolinePath = Path.join(binPath, 'github-plus.bat')
107107

108108
return writeFile(trampolinePath, trampoline)
109109
}
@@ -115,13 +115,13 @@ function writeShellScriptCLITrampoline(binPath: string): Promise<void> {
115115
// to resolve it. See https://github.com/desktop/desktop/issues/4998
116116
const versionedPath = resolveVersionedPath(
117117
binPath,
118-
'resources/app/static/github-desktop-plus-cli.sh'
118+
'resources/app/static/github-plus.sh'
119119
).replace(/\\/g, '/')
120120

121121
const trampoline = `#!/usr/bin/env bash
122122
DIR="$( cd "$( dirname "\$\{BASH_SOURCE[0]\}" )" && pwd )"
123123
sh "$DIR/${versionedPath}" "$@"`
124-
const trampolinePath = Path.join(binPath, 'github-desktop-plus-cli')
124+
const trampolinePath = Path.join(binPath, 'github-plus')
125125

126126
return writeFile(trampolinePath, trampoline, { encoding: 'utf8', mode: 755 })
127127
}

app/src/ui/lib/install-cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import * as fsAdmin from 'fs-admin-forked'
44
import { mkdir, readlink, symlink, unlink } from 'fs/promises'
55

66
/** The path for the installed command line tool. */
7-
export const InstalledCLIPath = '/usr/local/bin/github-desktop-plus-cli'
7+
export const InstalledCLIPath = '/usr/local/bin/github-plus'
88

99
/** The path to the packaged CLI. */
1010
const PackagedPath = Path.resolve(
1111
__dirname,
1212
'static',
13-
'github-desktop-plus-cli.sh'
13+
'github-plus.sh'
1414
)
1515

1616
/** Install the command line tool on macOS. */
File renamed without changes.
File renamed without changes.
File renamed without changes.

publish/aur/PKGBUILD-bin.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ package() {
5656
install -Dm755 "$srcdir/launch-app.sh" "$pkgdir/usr/bin/${_pkgname}"
5757

5858
chmod +x "$INSTALL_DIR/resources/app/static/github"
59-
ln -s "/opt/${_pkgname}/resources/app/static/github" "$pkgdir/usr/bin/github-desktop-plus-cli"
59+
ln -s "/opt/${_pkgname}/resources/app/static/github" "$pkgdir/usr/bin/github-plus"
6060
}

publish/aur/PKGBUILD-git.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ package() {
104104
install -Dm755 "$srcdir/launch-app.sh" "$pkgdir/usr/bin/${_pkgname}"
105105

106106
chmod +x "$INSTALL_DIR/resources/app/static/github"
107-
ln -s "/opt/${_pkgname}/resources/app/static/github" "$pkgdir/usr/bin/github-desktop-plus-cli"
107+
ln -s "/opt/${_pkgname}/resources/app/static/github" "$pkgdir/usr/bin/github-plus"
108108

109109
install -Dm0644 "$srcdir/${_pkgname}.desktop" "$pkgdir/usr/share/applications/${_pkgname}.desktop"
110110
}

publish/aur/PKGBUILD.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ package() {
9898
install -Dm755 "$srcdir/launch-app.sh" "$pkgdir/usr/bin/$pkgname"
9999

100100
chmod +x "$INSTALL_DIR/resources/app/static/github"
101-
ln -s "/opt/$pkgname/resources/app/static/github" "$pkgdir/usr/bin/github-desktop-plus-cli"
101+
ln -s "/opt/$pkgname/resources/app/static/github" "$pkgdir/usr/bin/github-plus"
102102

103103
install -Dm0644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
104104
}

0 commit comments

Comments
 (0)