Skip to content

Commit

Permalink
cmd added
Browse files Browse the repository at this point in the history
  • Loading branch information
mike committed Jul 6, 2021
1 parent cf14ef3 commit c0d3ca1
Show file tree
Hide file tree
Showing 69 changed files with 2,003 additions and 118 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
[dom](https://domonic.readthedocs.io/_modules/domonic/dom.html) : DOM API in python 3 😲 <br />
[javascript](https://domonic.readthedocs.io/_modules/domonic/javascript.html) : js API in python 3 😳 <br />
[dQuery](https://domonic.readthedocs.io/_modules/domonic/dQuery.html) - NEW. Recently started. utils for querying domonic. (alt + 0 for the º symbol)<br />
• terminal : call terminal commands with python3 😱 (*see at the end*)<br />
• terminal || cmd : call terminal commands with python3 😱 (*see at the end*)<br />
• JSON : utils for loading / decorating / transforming<br />
• SVG : Generate svg using python (untested)<br />
• aframe || x3d tags : auto generate 3d worlds with aframe. (see examples folder)<br />
Expand Down Expand Up @@ -429,6 +429,15 @@ command.run("echo hi")
Take a look at the code in 'terminal.py' to see all the commands as there's loads. (Disclaimer: not all tested.)


Windows users can use now use cmd.

```python
from domonic.cmd import *
print(dir())
print(dir("..\\"))
```


## DOCS

https://domonic.readthedocs.io/
Expand Down Expand Up @@ -562,6 +571,9 @@ or to test a single function:
python -m unittest tests.test_javascript.domonicTestCase.test_javascript_array
python -m unittest tests.test_dQuery.domonicTestCase.test_dQuery_addClass
python -m unittest tests.test_geom.domonicTestCase.test_vec2

python3 -m unittest tests.test_cmd.domonicTestCase.test_cmd_dir

```

or to test a whole module
Expand Down
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/_build/doctrees/index.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/packages/CDN.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/packages/JSON.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/packages/Tween.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/packages/autodocs.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/packages/cmd.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/packages/components.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/packages/constants.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/packages/dQuery.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/packages/dom.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/packages/events.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/packages/geom.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/packages/html.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/packages/javascript.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/packages/terminal.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/packages/x3d.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/_build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: e17c8ae752118defb384383d0988b11c
config: c7e511d22327a1f68a3ceb20483afa37
tags: 645f666f9bcd5a90fca523b33c5a78b7
7 changes: 4 additions & 3 deletions docs/_build/html/_modules/domonic/CDN.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>domonic.CDN &#8212; domonic 0.3.15 documentation</title>
<title>domonic.CDN &#8212; domonic 0.3.17 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
Expand Down Expand Up @@ -175,14 +175,15 @@ <h3>Navigation</h3>
<li class="toctree-l1"><a class="reference internal" href="../../packages/javascript.html">Domonic: Javascript</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/JSON.html">Domonic: JSON</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/terminal.html">Domonic: terminal</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/CDN.html">Domonic: CDN</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/cmd.html">Domonic: cmd</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/components.html">Domonic: templates and components</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/tween.html">Domonic: tween</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/x3d.html">Domonic: x3d</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/dQuery.html">Domonic: dQuery</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/constants.html">Domonic: constants</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/events.html">Domonic: events</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/geom.html">Domonic: geom</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/x3d.html">Domonic: x3d</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/CDN.html">Domonic: CDN</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/autodocs.html">Domonic: autodocs</a></li>
</ul>

Expand Down
7 changes: 4 additions & 3 deletions docs/_build/html/_modules/domonic/JSON.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>domonic.JSON &#8212; domonic 0.3.15 documentation</title>
<title>domonic.JSON &#8212; domonic 0.3.17 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
Expand Down Expand Up @@ -269,14 +269,15 @@ <h3>Navigation</h3>
<li class="toctree-l1"><a class="reference internal" href="../../packages/javascript.html">Domonic: Javascript</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/JSON.html">Domonic: JSON</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/terminal.html">Domonic: terminal</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/CDN.html">Domonic: CDN</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/cmd.html">Domonic: cmd</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/components.html">Domonic: templates and components</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/tween.html">Domonic: tween</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/x3d.html">Domonic: x3d</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/dQuery.html">Domonic: dQuery</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/constants.html">Domonic: constants</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/events.html">Domonic: events</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/geom.html">Domonic: geom</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/x3d.html">Domonic: x3d</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/CDN.html">Domonic: CDN</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/autodocs.html">Domonic: autodocs</a></li>
</ul>

Expand Down
Loading

0 comments on commit c0d3ca1

Please sign in to comment.