Commit graph

50 commits

Author SHA1 Message Date
Noortheen Raja
2b947e9e66 refactor: replace xontribs.json with xontribs_meta.py
closes #3931
2020-11-10 22:12:27 +05:30
Anthony Scopatz
3afd5430a0
Procs Initial Refactor (#3897)
* refectored builtins

* refectored posix and readers

* refectored posix and readers

* proxies

* pipelines

* basic procs import cleanup

* fixed / refactored tests

* procs docs

* amalgamate

* XONSH_DEBUG=1 in tests

* exclude xonsh.procs mypy

* Use `pip install` instead of `python setup.py install`

* Update docs/api/procs/pipelines.rst

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>

Co-authored-by: Gil Forsyth <gil@forsyth.dev>
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2020-10-20 10:21:11 -04:00
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
Bob Hyman
53bfe8c99c
Add ptk3 (#3521)
* delete package ptk; rename ptk2 to ptk_shell.; leave ptk2 as alias for ptk_shell.
* SHELL_TYPE "prompt_toolkit" only; remove ptk1 specific behavior.
* Doc updates: eliminate reference to prompt-toolkit < 2.0
* update requirements files ptk>=2; test shell_style="none"
* fix ptk2 stub per code review
* Add ptk2 to list of packages to install.
2020-04-18 10:44:27 -04:00
Anthony Scopatz
7a3f7fb551 dumb terminal support 2018-12-13 16:02:59 -05:00
Anthony Scopatz
cb6a913cab docs build 2018-08-31 08:05:39 -05:00
Anthony Scopatz
abd568fccc add the jupyter_shell to the index 2018-08-02 23:49:55 -04:00
Anthony Scopatz
3a31d6ff31 some doc fixes 2018-07-19 19:59:07 -04:00
Anthony Scopatz
d77b25dde3 docs 2018-07-16 12:19:17 -04:00
Anthony Scopatz
11da7fe12a New JSON utils module 2017-02-26 15:42:36 -05:00
Anthony Scopatz
184a17aea5 added news and docs 2017-02-21 00:15:34 -05:00
Anthony Scopatz
3740716799 audodoc hooks 2017-02-12 18:36:50 -05:00
Anthony Scopatz
77e8b10f07 more doc fixes 2016-12-20 13:47:58 -08:00
Gil Forsyth
88bd04e5af remove defunct teepty docs 2016-10-25 10:53:59 -04:00
BlahGeek
e1008e8202 api docs for prompt 2016-09-04 19:59:48 +08:00
Jamie Bliss
d14a4bf938 Add module API docs 2016-08-27 23:00:50 -04:00
Jamie Bliss
19b483ded5 Some corrections to vox-related documentation 2016-07-21 00:44:10 -04:00
Anthony Scopatz
b8ac2a1ff0 more doc hooks 2016-06-25 12:52:05 -04:00
Anthony Scopatz
3d91066145 minor doc fixes 2016-06-24 14:20:37 -04:00
Anthony Scopatz
456167f70e even more docs 2016-06-05 22:41:56 -04:00
Anthony Scopatz
231c7f0a6e add completer API doc hooks 2016-06-04 20:05:55 -04:00
Frank Sachsenheim
81f0f50496 Adds a xonsh.platform module
comes with occasional code cleanup and micro optimizations
fixes `xonsh.tools.CommandCache.all_commands`
2016-05-20 19:26:02 +02:00
Frank Sachsenheim
05bad9af2a Updates to docs
- more links to numpydoc guide
- clarifies dependencies to build docs
2016-05-16 12:42:02 +02:00
adam j hartz
a2285fd916 documentation 2016-05-12 11:53:15 -04:00
Anthony Scopatz
50d8f0c5bd interim add 2016-05-11 00:42:36 -04:00
Gil Forsyth
527b6e9d0e add vox to API index 2016-04-06 18:42:55 -04:00
Anthony Scopatz
5785c9c86e added tracer mod 2016-02-05 01:45:05 -05:00
Anthony Scopatz
2f925aa3f1 autogen config var docs 2016-01-06 01:55:40 -08:00
Anthony Scopatz
6769534856 docs update 2015-12-30 00:23:22 -08:00
Anthony Scopatz
25cc8fb845 fixed minor conflict 2015-11-06 19:12:33 -05:00
Anthony Scopatz
502bce87ff minor fixes from review 2015-10-11 10:51:26 -04:00
Anthony Scopatz
1e24bbb2ed added tests for foreign shells 2015-10-10 19:52:53 -04:00
Anthony Scopatz
ca4c5651a1 docs for jupyter kernel 2015-10-04 15:00:00 -04:00
Anthony Scopatz
102ecf0736 started history differ 2015-08-23 22:57:36 -04:00
Anthony Scopatz
97cb632d67 inited replay 2015-08-23 14:13:14 -04:00
Anthony Scopatz
e6e5ce7abd added teepty 2015-08-23 14:09:10 -04:00
Morten Enemark Lund
5567dba56b Added the pretty module to the documentation 2015-07-16 12:58:00 +02:00
anula
640c3991ab Fix bugs in LimitedFileHistory (plus tests) and move it to different file.
* Move LimitedFileHistory from history.py to prompt_toolkit_history.py
because it is needed only for prompt_toolkit and requires prompt_toolkit.
* Add instalation of prompt_toolkit to .travis.yml
* Update docs hooks
2015-05-18 19:33:37 +02:00
anula
c56c2c8330 Add prompt_toolkit based shell.
This adds prompt_toolkit based shell in addition to existing readline
shell. By default regular readline shell is loaded, to use
prompt_toolkit version you need to add:

    $PROMPT_TOOLKIT_SHELL = True

to your ~/.xonshrc
Another nice thing to add there is:

    from xonsh.pyghooks import XonshLexer
    $HIGHLIGHTING_LEXER = XonshLexer

that adds highlighting of shell input (may be a bit annoying sometimes).

There is no key for inserting indentation yet, it will be improved in the
future.
2015-05-16 19:34:44 +02:00
adam j hartz
f768664d10 documentation for ProcProxy 2015-05-12 19:26:27 -04:00
Anthony Scopatz
ca1fbb3f87 more docs 2015-05-03 20:09:26 -05:00
Anthony Scopatz
d6799fdc30 recursive impl 2015-03-31 01:10:19 -05:00
Anthony Scopatz
5707b38947 import hooks docs 2015-03-30 00:11:37 -05:00
adam j hartz
eb547292c0 job control: documentation 2015-03-27 02:07:17 -04:00
adam j hartz
6bd814c8b9 documentation for dirstack module 2015-03-21 20:01:10 -04:00
Anthony Scopatz
65fd39affe done with docs/api 2015-03-07 20:30:45 -06:00
Anthony Scopatz
4edb712641 more autodoc hooks 2015-03-07 20:24:07 -06:00
Anthony Scopatz
5f9ad36d83 language api docs 2015-03-07 20:11:33 -06:00
Anthony Scopatz
1fac620ef4 more edits 2015-03-07 19:53:41 -06:00
Anthony Scopatz
ccb334626b some doc updates 2015-03-07 19:30:06 -06:00