gitlab-search icon indicating copy to clipboard operation
gitlab-search copied to clipboard

Personal token starting with "-" doesn't work

Open phillipj opened this issue 4 years ago • 1 comments

Just tried running setup with a personal access token starting with a minus (-):

$ gitlab-search setup -superSecretToken
error: missing required argument 'personal-access-token'

Doesn't seem to recognise that token argument if it starts with a minus, which obviously some GitLab tokens do.

This might be affect by my use of zsh.

phillipj avatar Jun 06 '20 22:06 phillipj

Workaround for this ATM for anyone struggling with the same is creating the .gitlabsearchrc file by hand:

$ echo '{"token":"-superSecretToken"}' > .gitlabsearchrc

phillipj avatar Jun 06 '20 22:06 phillipj