Skip to content

refactor: unify instantiation of command.Shell

feistel requested to merge feistel/gitlab-shell:refactor/unify-shell into main

Avoid instantiating command.Shell directly.

Since the arguments array is nil, the Parse method will just validate the Shell (parseWho will be a no op)

NewWithKey has been added to avoid mixing the parsing logic with sshd (passing []string{"key-"+gitlabKeyId} to New)

Closes #517 (closed)

Merge request reports