create_theme.py 409 B

12345678910111213141516
  1. # coding: utf-8
  2. """JupyterLab command handler"""
  3. # Copyright (c) Jupyter Development Team.
  4. # Distributed under the terms of the Modified BSD License.
  5. import pexpect
  6. child = pexpect.spawn("node buildutils/lib/create-theme.js")
  7. child.expect("name:")
  8. child.sendline("foo")
  9. child.expect("title:")
  10. child.sendline("Foo")
  11. child.expect("description:")
  12. child.sendline("foo theme")
  13. child.expect("Created new theme")