Commits

Wolfgang Scherer  committed 02b63fd

adhoc.py: option --eide for listing templates as eIDE menu.

  • Participants
  • Parent commits 0f69a45

Comments (0)

Files changed (1)

 adhoc.py --template docutils.conf                 # docutils.conf                  adhoc_template_v
 adhoc.py --template                               # -                              adhoc_template
 adhoc.py --template README.txt                    # README.txt                     adhoc_template
+adhoc.py --template adhoc_init                    # -adhoc_init                    adhoc_template
 adhoc.py --template col-param-closure             # -col-param-closure             adhoc_template
 adhoc.py --template doc/USE_CASES.txt             # doc/USE_CASES.txt              adhoc_template
 adhoc.py --template doc/index.rst                 # doc/index.rst                  adhoc_template
         ...     printf(tpl)
         -
         README.txt
+        -adhoc_init
         -col-param-closure
         doc/USE_CASES.txt
         doc/index.rst
         ...     printf(strclean(tpl))
         ('-', 'adhoc_template')
         ('README.txt', 'adhoc_template')
+        ('-adhoc_init', 'adhoc_template')
         ('-col-param-closure', 'adhoc_template')
         ('doc/USE_CASES.txt', 'adhoc_template')
         ('doc/index.rst', 'adhoc_template')
             # |:special:|
             ('README.txt', 'adhoc_template'),
             ('doc/USE_CASES.txt', 'adhoc_template'),
-#            ('-adhoc_import', 'adhoc_template'),
+            ('-adhoc_init', 'adhoc_template'),
             # |:special:|
             ]
         AdHoc.template_process_hooks = {
             elif template_name == 'doc/USE_CASES.txt':
                 USE_CASES = get_use_cases()
                 AdHoc.write_source('-', USE_CASES)
+            elif template_name == 'adhoc_init':
+                import use_case_000_ as use_case
+                use_case.main('script --template'.split())
             # |:special:|
             else:
                 template = AdHoc.get_named_template(
 # :ide: COMPILE: Run with --template list
 # . (progn (save-buffer) (compile (concat "python ./" (file-name-nondirectory (buffer-file-name)) " --template list")))
 
+# :ide: COMPILE: Run with --eide '#'
+# . (progn (save-buffer) (compile (concat "python ./" (file-name-nondirectory (buffer-file-name)) " --eide '#'")))
+
+# :ide: COMPILE: Run with --expected
+# . (progn (save-buffer) (compile (concat "python ./" (file-name-nondirectory (buffer-file-name)) " --expected")))
+
 # :ide: COMPILE: make doc
 # . (progn (save-buffer) (compile (concat "make doc")))
 
 # :ide: COMPILE: Run with --eide
 # . (progn (save-buffer) (compile (concat "python ./" (file-name-nondirectory (buffer-file-name)) " --eide")))
 
-# :ide: COMPILE: Run with --eide '#'
-# . (progn (save-buffer) (compile (concat "python ./" (file-name-nondirectory (buffer-file-name)) " --eide '#'")))
-
 # :ide: COMPILE: Run with python3 with --test
 # . (progn (save-buffer) (compile (concat "python3 ./" (file-name-nondirectory (buffer-file-name)) " --test")))
 
 # :ide: COMPILE: Run with python3 w/o args
 # . (progn (save-buffer) (compile (concat "python3 ./" (file-name-nondirectory (buffer-file-name)) " ")))
 
-# :ide: COMPILE: Run with --expected
-# . (progn (save-buffer) (compile (concat "python ./" (file-name-nondirectory (buffer-file-name)) " --expected")))
-
 # :ide: COMPILE: Run with --test
 # . (progn (save-buffer) (compile (concat "python ./" (file-name-nondirectory (buffer-file-name)) " --test")))