Skip to content

Commit 7403de5

Browse files
committed
Add upload scripts
1 parent 7cbf071 commit 7403de5

File tree

4 files changed

+97
-4
lines changed

4 files changed

+97
-4
lines changed

README.md

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $ npm install -g codify
1818
$ codify COMMAND
1919
running command...
2020
$ codify (--version)
21-
codify/0.0.2 darwin-arm64 node-v20.15.0
21+
codify/0.0.4 darwin-arm64 node-v20.15.0
2222
$ codify --help [COMMAND]
2323
USAGE
2424
$ codify COMMAND
@@ -28,6 +28,7 @@ USAGE
2828
# Commands
2929
<!-- commands -->
3030
* [`codify apply`](#codify-apply)
31+
* [`codify autocomplete [SHELL]`](#codify-autocomplete-shell)
3132
* [`codify help [COMMAND]`](#codify-help-command)
3233
* [`codify plan`](#codify-plan)
3334
* [`codify plugins`](#codify-plugins)
@@ -41,6 +42,7 @@ USAGE
4142
* [`codify plugins unlink [PLUGIN]`](#codify-plugins-unlink-plugin)
4243
* [`codify plugins update`](#codify-plugins-update)
4344
* [`codify uninstall`](#codify-uninstall)
45+
* [`codify update [CHANNEL]`](#codify-update-channel)
4446

4547
## `codify apply`
4648

@@ -68,6 +70,37 @@ EXAMPLES
6870
$ codify apply
6971
```
7072

73+
## `codify autocomplete [SHELL]`
74+
75+
Display autocomplete installation instructions.
76+
77+
```
78+
USAGE
79+
$ codify autocomplete [SHELL] [-r]
80+
81+
ARGUMENTS
82+
SHELL (zsh|bash|powershell) Shell type
83+
84+
FLAGS
85+
-r, --refresh-cache Refresh cache (ignores displaying instructions)
86+
87+
DESCRIPTION
88+
Display autocomplete installation instructions.
89+
90+
EXAMPLES
91+
$ codify autocomplete
92+
93+
$ codify autocomplete bash
94+
95+
$ codify autocomplete zsh
96+
97+
$ codify autocomplete powershell
98+
99+
$ codify autocomplete --refresh-cache
100+
```
101+
102+
_See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.2.4/src/commands/autocomplete/index.ts)_
103+
71104
## `codify help [COMMAND]`
72105

73106
Display help for codify.
@@ -426,4 +459,41 @@ DESCRIPTION
426459
EXAMPLES
427460
$ codify uninstall
428461
```
462+
463+
## `codify update [CHANNEL]`
464+
465+
update the codify CLI
466+
467+
```
468+
USAGE
469+
$ codify update [CHANNEL] [--force | | [-a | -v <value> | -i]]
470+
471+
FLAGS
472+
-a, --available See available versions.
473+
-i, --interactive Interactively select version to install. This is ignored if a channel is provided.
474+
-v, --version=<value> Install a specific version.
475+
--force Force a re-download of the requested version.
476+
477+
DESCRIPTION
478+
update the codify CLI
479+
480+
EXAMPLES
481+
Update to the stable channel:
482+
483+
$ codify update stable
484+
485+
Update to a specific version:
486+
487+
$ codify update --version 1.0.0
488+
489+
Interactively select version:
490+
491+
$ codify update --interactive
492+
493+
See available versions:
494+
495+
$ codify update --available
496+
```
497+
498+
_See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v4.5.9/src/commands/update.ts)_
429499
<!-- commandsstop -->

codify.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
]
1414
},
1515
{
16-
"type": "android-studio"
16+
"type": "android-studio",
17+
"version": "2023.3.1"
1718
},
1819
{
1920
"type": "homebrew",

package.json

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
"@oclif/core": "^4.0.8",
99
"@oclif/plugin-help": "^6.2.4",
1010
"@oclif/plugin-plugins": "^5.3.3",
11+
"@oclif/plugin-autocomplete": "3.2.4",
12+
"@oclif/plugin-commands": "4.0.16",
13+
"@oclif/plugin-update": "4.5.9",
14+
"@oclif/plugin-version": "2.2.13",
15+
"@oclif/plugin-warn-if-update-available": "3.1.17",
16+
"@oclif/plugin-which": "3.2.14",
1117
"ajv": "^8.12.0",
1218
"ajv-formats": "^3.0.1",
1319
"chalk": "^5.3.0",
@@ -79,7 +85,10 @@
7985
"dirname": "codify",
8086
"plugins": [
8187
"@oclif/plugin-help",
82-
"@oclif/plugin-plugins"
88+
"@oclif/plugin-plugins",
89+
"@oclif/plugin-autocomplete",
90+
"@oclif/plugin-update",
91+
"@oclif/plugin-warn-if-update-available"
8392
],
8493
"commands": {
8594
"strategy": "explicit",
@@ -98,6 +107,15 @@
98107
"macos": {
99108
"identifier": "com.codify.cli",
100109
"sign": "\"Developer ID Installer: Qingran Wang (PCG246DPVT)\""
110+
},
111+
"update": {
112+
"s3": {
113+
"host": "https://releases-dev.codifycli.com",
114+
"bucket": "cli-releases-dev"
115+
}
116+
},
117+
"warn-if-update-available": {
118+
"timeoutInDays": 7
101119
}
102120
},
103121
"repository": "kevinwang5658/codify",
@@ -113,7 +131,7 @@
113131
"start:dev": "./bin/dev.js",
114132
"start:vm": "npm run build && npm run pack:macos && npm run start:vm"
115133
},
116-
"version": "0.0.2",
134+
"version": "0.0.4",
117135
"bugs": "https://github.com/kevinwang5658/codify/issues",
118136
"keywords": [
119137
"oclif"

scripts/upload.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
npm run pkg
2+
oclif pack tarballs -r . -t darwin-arm64,darwin-x64
3+
oclif upload macos
4+
oclif upload tarballs -t darwin-arm64,darwin-x64

0 commit comments

Comments
 (0)