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

Documentation for environment variables (envirnoment API) #319

Closed
anki-code opened this issue Sep 16, 2020 · 1 comment
Closed

Documentation for environment variables (envirnoment API) #319

anki-code opened this issue Sep 16, 2020 · 1 comment

Comments

@anki-code
Copy link
Contributor

anki-code commented Sep 16, 2020

Hello! Thank you for argcomplete!

I read the documentation (https://kislyuk.github.io/argcomplete/) and have a questions:

  1. is there a description of environment variables which used by argcomplete to run the python script? (i.e. _ARGCOMPLETE, _ARGCOMPLETE_IFS, COMP_LINE, COMP_POINT)
  2. where I can get the complete list/description of this variables?

Thanks!

@kislyuk
Copy link
Owner

kislyuk commented Sep 16, 2020

The interface between the shellcode hook (completion function) and argcomplete is internal to argcomplete. The COMP_* variables are part of the Bash API. The full set of variables can be seen in

COMP_LINE="$COMP_LINE" \
COMP_POINT="$COMP_POINT" \
COMP_TYPE="$COMP_TYPE" \
_ARGCOMPLETE_COMP_WORDBREAKS="$COMP_WORDBREAKS" \
_ARGCOMPLETE=$ARGCOMPLETE \
_ARGCOMPLETE_SUPPRESS_SPACE=1 \
.

@kislyuk kislyuk closed this as completed Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants