xonsh/docs/api/index.rst
David Dotson a8d4a57f01
Environment variable registration, deregistration (addresses #3227) (#3377)
* First attempt at register/deregister machinery for envvars

* Added detailed docstring, simplified ensurers

Also added some type checking that became clear from docstring writing.

* Changes in response to @scopatz review

Simplified kwarg names.

* defaultval -> default

* Created new Var namedtuple, as well as DEFAULT_VARS

We should now delete DEFAULT_ENSURERS, DEFAULT_VALUES, DEFAULT_DOCS, and
refactor Env to use the new single namedtuple and the DEFAULT_VARS dict

* Removed DEFAULT_ENSURERS, DEFAULT_VALUES, DEFAULT_DOCS

Now need to edit Env to use new DEFAULT_VARS, Var namedtuple

* Finished updating Env object to use new combined Var

Also made corresponding changes elsewhere ensurer was used

* Working on test failures

* More fixes in light of test failures

* Set default values for Var in register.

There's a bit of duplication here, but makes for a cleaner function.

* Black reformatting on environ.py

* Removed history replay

* Added register tests

* Added addtional deregistration test

* Removed all replay references, in docs too

* Added news item for env-reg-dereg

* trigger rebuild

* doc fix

* more doc fixes

* again

* attr names

* reorder imports

* fix flake error

Co-authored-by: Anthony Scopatz <scopatz@gmail.com>
2020-08-05 10:39:11 -04:00

89 lines
1 KiB
ReStructuredText

.. _api:
=================
Xonsh API
=================
For those of you who want the gritty details.
**Xonsh Standard Library:**
.. toctree::
:maxdepth: 2
lib/index
**Language:**
.. toctree::
:maxdepth: 1
lexer
parser
ast
execer
imphooks
**Command Prompt:**
.. toctree::
:maxdepth: 1
built_ins
environ
aliases
dirstack
jobs
proc
inspectors
history/index
completer
completers/index
prompt/index
shell
base_shell
readline_shell
ptk_shell/shell
ptk_shell/history
ptk_shell/completer
ptk_shell/key_bindings
pretty
diff_history
xoreutils/index
**Helpers:**
.. toctree::
:maxdepth: 1
events
tools
platform
jsonutils
lazyjson
lazyasd
openpy
foreign_shells
commands_cache
tracer
main
color_tools
pyghooks
jupyter_kernel
jupyter_shell
dumb_shell
wizard
xonfig
codecache
contexts
**Xontribs:**
.. toctree::
:maxdepth: 1
mplhooks
vox