From 36a2a41e357780d468582c78c4cbb738c5bb4b26 Mon Sep 17 00:00:00 2001
From: Johannes Pfeifer <jpfeifer@gmx.de>
Date: Sun, 8 Oct 2023 21:13:53 +0200
Subject: [PATCH] Add function signatures for command line functions

---
 matlab/cli/functionSignatures.json | 10 ++++++++++
 matlab/functionSignatures.json     | 27 +++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)
 create mode 100644 matlab/cli/functionSignatures.json
 create mode 100644 matlab/functionSignatures.json

diff --git a/matlab/cli/functionSignatures.json b/matlab/cli/functionSignatures.json
new file mode 100644
index 0000000000..77127d9c59
--- /dev/null
+++ b/matlab/cli/functionSignatures.json
@@ -0,0 +1,10 @@
+{
+  "_schemaVersion": "1.0.0",
+  "prior":
+  {
+     "inputs":
+     [
+        {"name":"options", "kind":"flag", "type":["char", "choices={'table', 'moments', 'moments(distribution)', 'optimize', 'simulate', 'plot'}"],  "repeating":true}
+     ]
+  }
+}
diff --git a/matlab/functionSignatures.json b/matlab/functionSignatures.json
new file mode 100644
index 0000000000..9ba93ed0bf
--- /dev/null
+++ b/matlab/functionSignatures.json
@@ -0,0 +1,27 @@
+{
+  "_schemaVersion": "1.0.0",
+  "dynare":
+  {
+     "inputs":
+     [
+        {"name":"fname", "kind":"required", "type":["file=*.mod,*.dyn"], "purpose":"Model file"},
+        {"name":"options", "kind":"flag", "type":["char", "choices={'debug', 'noclearall', 'onlyclearglobals', 'savemacro[=macro_file]', 'onlymacro', 'linemacro', 'notmpterms', 'nolog', 'warn_uninit', 'console', 'nograph', 'nointeractive', 'parallel[=cluster_name]', 'conffile=parallel_config_path_and_filename', 'parallel_slave_open_mode', 'parallel_test', 'parallel_use_psexec=true|false', '-D<variable>[=<value>]', '-I/path', 'nostrict', 'stochastic', 'fast', 'minimal_workspace', 'compute_xrefs', 'output=second|third', 'params_derivs_order=0|1|2', 'transform_unary_ops', 'exclude_eqs=<equation_tag_list_or_file>', 'include_eqs=<equation_tag_list_or_file>', 'json=parse|check|transform|compute', 'jsonstdout', 'onlyjson', 'jsonderivsimple', 'nopathchange', 'nopreprocessoroutput', 'mexext=<extension>', 'matlabroot=<path>', 'onlymodel', 'notime', 'use_dll', 'nocommutativity'}"],  "repeating":true}
+     ]
+  },
+  "internals":
+  {
+     "inputs":
+     [
+        {"name":"flag", "kind":"required", "type":["char", "choices={'--test'}"], "purpose":"Test routine"},
+        {"name":"fname", "kind":"required", "type":["file=*.m"], "purpose":"Routine name"}
+     ]
+  }, 
+  "internals":
+  {
+     "inputs":
+     [
+        {"name":"flag", "kind":"required", "type":["char", "choices={'--display-mh-history','--load-mh-history'}"], "purpose":"Model file"},
+        {"name":"fname", "kind":"required", "type":["file=*.mod,*.dyn"], "purpose":"Model name"}
+     ]
+  }
+}
\ No newline at end of file
-- 
GitLab