Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Replace @oclif/command to @oclif/core library #553

Merged
merged 43 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
51cbc24
feat: Support Box AI endpoints
congminh1254 Jul 9, 2024
86f243c
Update Node version
congminh1254 Jul 9, 2024
e0dd93d
Update oclif/test
congminh1254 Jul 10, 2024
7d6250e
Update deps
congminh1254 Jul 10, 2024
6373295
Update version
congminh1254 Jul 11, 2024
9087a49
Update test
congminh1254 Jul 11, 2024
038dd0c
Update code
congminh1254 Jul 11, 2024
5ad854c
Update package lock
congminh1254 Jul 11, 2024
4002f36
Update fancy-test
congminh1254 Jul 11, 2024
d4673e2
Update fancy-test
congminh1254 Jul 11, 2024
e38380a
Update code
congminh1254 Jul 11, 2024
70a6828
Update test
congminh1254 Jul 11, 2024
4bc0008
Update code
congminh1254 Jul 11, 2024
5a75bda
Update versiong
congminh1254 Jul 11, 2024
389de18
Update code
congminh1254 Jul 11, 2024
7cae927
Update code
congminh1254 Jul 11, 2024
8ad9eb3
Update version
congminh1254 Jul 26, 2024
b3cc22a
Update code
congminh1254 Jul 26, 2024
78ec967
resolve conflict
congminh1254 Oct 18, 2024
fb53162
feat: Drop support old Node version
congminh1254 Oct 21, 2024
a083151
Update README
congminh1254 Oct 23, 2024
b674068
feat: Bump library
congminh1254 Dec 4, 2024
f5d7a9b
Resolve conflict
congminh1254 Dec 4, 2024
8762689
feat: Drop support old Node version
congminh1254 Oct 21, 2024
4b9ac47
Update README
congminh1254 Oct 23, 2024
cdb78c9
Merge branch 'drop-support-node' of https://github.com/box/boxcli int…
congminh1254 Dec 4, 2024
2b28187
Resolve conflict
congminh1254 Dec 4, 2024
ed2e0d7
Resolve conflict
congminh1254 Dec 4, 2024
dc6b059
Resolve conflict
congminh1254 Dec 4, 2024
76732dc
Update readme
congminh1254 Dec 4, 2024
c8570bd
Fix tests
congminh1254 Dec 4, 2024
2ce1143
update newline
congminh1254 Dec 4, 2024
92fbffe
Fix eslint
congminh1254 Dec 5, 2024
5c38d49
fix test
congminh1254 Dec 5, 2024
ae8af80
fix test
congminh1254 Dec 5, 2024
ae4e6c7
Revert docs
congminh1254 Dec 6, 2024
c2d7c35
Update code
congminh1254 Dec 9, 2024
baddeba
Update license file
congminh1254 Dec 9, 2024
e48d935
Resolve conflict
congminh1254 Jan 26, 2025
20b0202
Update README.md
congminh1254 Jan 26, 2025
a070951
Bump TS SDK
congminh1254 Jan 26, 2025
8219629
Resolve conflict
congminh1254 Jan 26, 2025
69e019e
Merge branch 'main' into bump-oclif
congminh1254 Jan 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist/
tmp/
coverage/
15 changes: 6 additions & 9 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ globals:
plugins:
- promise
- unicorn
- node
- n

extends:
- 'eslint:recommended'
- 'plugin:promise/recommended'
- 'plugin:unicorn/recommended'
- 'plugin:node/recommended'
- 'plugin:n/recommended'
- 'prettier'

rules:

Expand Down Expand Up @@ -124,11 +125,7 @@ rules:
no-shadow-restricted-names: error
# Turn on someday, just use null everywhere if we can
no-undefined: off
# We allow some unused args
no-unused-vars:
- error
-
args: after-used
no-unused-vars: error
no-use-before-define: error

### NODE AND COMMONJS
Expand Down Expand Up @@ -328,8 +325,8 @@ rules:
unicorn/no-new-buffer: error

### NODE
node/no-deprecated-api: error
node/exports-style:
n/no-deprecated-api: error
n/exports-style:
- error
- module.exports

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,6 @@ typings/
#Intelij Idea
*.iml
.idea

# Oclif Build files
tmp/
9 changes: 9 additions & 0 deletions .glf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"inputs": ["./package.json"],
"output": "./LICENSE-THIRD-PARTY.txt",
"lineEnding": "lf",
"replace": {
"[email protected]": "./LICENSE.MIT",
"[email protected]": "./LICENSE.MIT"
}
}
3 changes: 3 additions & 0 deletions .mocharc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
recursive: true
timeout: '10000'
reporter: 'spec'
6 changes: 1 addition & 5 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
{
"tabWidth": 2,
"useTabs": true,
"singleQuote": true
}
"@oclif/prettier-config"
7,760 changes: 7,688 additions & 72 deletions LICENSE-THIRD-PARTY.txt

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ Avatar URL: 'https://app.box.com/api/avatar/large/77777'
* [`box tokens`](docs/tokens.md) - Get a token. Returns the service account token by default
* [`box trash`](docs/trash.md) - List all items in trash
* [`box users`](docs/users.md) - List all Box users
* [`box version`](docs/version.md)
* [`box watermarking`](docs/watermarking.md) - Apply a watermark on an item
* [`box web-links`](docs/web-links.md) - Manage web links
* [`box webhooks`](docs/webhooks.md) - List all webhooks
Expand Down
9 changes: 6 additions & 3 deletions bin/run
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env node

require('@oclif/command').run()
.then(require('@oclif/command/flush'))
.catch(require('@oclif/errors/handle'))
const { handle } = require('@oclif/core/errors');
const flush = require('@oclif/core/flush');

require('@oclif/core').run()
.then(flush)
.catch(handle);
26 changes: 26 additions & 0 deletions docs/version.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
`box version`
=============



* [`box version`](#box-version)

## `box version`

```
USAGE
$ box version [--json] [--verbose]

FLAGS
--verbose Show additional information about the CLI.

GLOBAL FLAGS
--json Format output as json.

FLAG DESCRIPTIONS
--verbose Show additional information about the CLI.

Additionally shows the architecture, node version, operating system, and versions of plugins that the CLI is using.
```

_See code: [@oclif/plugin-version](https://github.com/oclif/plugin-version/blob/v2.2.16/src/commands/version.js)_
Loading