Closed teutat3s closed 1 year ago
I can't reproduce this.
] make test TEST_FILTER=unit
test/unit/completion.test.js ........................ 54/54
test/unit/options.test.js ........................... 60/60
test/unit/trackmarker.test.js ....................... 73/73
test/unit/utils.test.js ............................. 32/32
total ............................................. 219/219
219 passing (4s)
ok
And
] ./bin/msync --completion | head
#!/bin/bash
#
# Bash completion generated for 'msync' at Mon Sep 18 2023 11:26:19 GMT-0700 (Pacific Daylight Time).
#
# The original template lives here:
# https://github.com/trentm/node-dashdash/blob/master/etc/dashdash.bash_completion.in
#
#
# Copyright 2016 Trent Mick
Do you have any MANTA_*
env vars set when running the test suite and ./bin/msync --completion
?
EDIT: I can confirm that the issue does not arise when MANTA_*
env vars are set. This does not happen with other commands.
Manta commands like
mls
accept the flagmls --completion
to print completion to stdout.This does not yet work with the new
msync
command, it prints out the help message instead.See below:
EDIT: Confirmed the test suite also fails on the
completion
unit test, when runningEDIT2: Culprit is probably in https://github.com/TritonDataCenter/node-manta/blob/master/bin/msync#L181-L188, similar to: https://github.com/TritonDataCenter/node-manta/issues/213