Skip to content

Commit 7a4751e

Browse files
committed
chore: pr comments
1 parent 0a8b02b commit 7a4751e

5 files changed

Lines changed: 12 additions & 11 deletions

File tree

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
name: Pull Request
1+
name: CI
22

33
on:
44
pull_request:
55
branches:
66
- main
77
- next
8+
push:
9+
branches:
10+
- main
811

912
jobs:
1013
build:
@@ -25,8 +28,7 @@ jobs:
2528

2629
integration:
2730
runs-on: ubuntu-latest
28-
if: github.event.pull_request.base.ref == 'main'
29-
environment: integration
31+
if: github.event_name == 'push'
3032
steps:
3133
- uses: actions/checkout@v4
3234
with:

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"test": "vitest run test/utils test/cli-core.test.ts test/specs-completeness.test.ts",
3333
"test:watch": "vitest",
3434
"test:all": "vitest run",
35-
"test:unit": "vitest run test/utils test/cli-core.test.ts test/specs-completeness.test.ts",
3635
"test:integration": "vitest run test/cli.test.ts",
3736
"publint": "publint",
3837
"updatedocs": "tsx scripts/update-docs.ts",

src/lib/cp.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ async function copyLocalToRemote(
435435
destParsed.bucket,
436436
destKey,
437437
config,
438-
true
438+
!_jsonMode
439439
);
440440
if (result.error) {
441441
console.error(result.error);
@@ -602,7 +602,7 @@ async function copyRemoteToLocal(
602602
srcParsed.path,
603603
localFilePath,
604604
config,
605-
true
605+
!_jsonMode
606606
);
607607
if (result.error) {
608608
console.error(result.error);
@@ -831,7 +831,7 @@ async function copyRemoteToRemote(
831831
srcParsed.path,
832832
destParsed.bucket,
833833
destKey,
834-
true
834+
!_jsonMode
835835
);
836836

837837
if (result.error) {
@@ -870,7 +870,7 @@ export default async function cp(options: Record<string, unknown>) {
870870
const jsonFlag = getOption<boolean>(options, ['json']);
871871
const format = jsonFlag
872872
? 'json'
873-
: getOption<string>(options, ['format', 'f', 'F'], 'table');
873+
: getOption<string>(options, ['format'], 'table');
874874
_jsonMode = format === 'json';
875875

876876
const direction = detectDirection(src, dest);

src/lib/mv.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default async function mv(options: Record<string, unknown>) {
2323
const jsonFlag = getOption<boolean>(options, ['json']);
2424
const format = jsonFlag
2525
? 'json'
26-
: getOption<string>(options, ['format', 'f', 'F'], 'table');
26+
: getOption<string>(options, ['format'], 'table');
2727
_jsonMode = format === 'json';
2828

2929
if (!src || !dest) {
@@ -289,7 +289,7 @@ export default async function mv(options: Record<string, unknown>) {
289289
srcPath.path,
290290
destPath.bucket,
291291
destKey,
292-
true // show progress for single file
292+
!_jsonMode // show progress for single file (not in JSON mode)
293293
);
294294

295295
if (result.error) {

src/lib/rm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default async function rm(options: Record<string, unknown>) {
2020
const jsonFlag = getOption<boolean>(options, ['json']);
2121
const format = jsonFlag
2222
? 'json'
23-
: getOption<string>(options, ['format', 'f', 'F'], 'table');
23+
: getOption<string>(options, ['format'], 'table');
2424
_jsonMode = format === 'json';
2525

2626
if (!pathString) {

0 commit comments

Comments
 (0)