nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cb3d91d
)
src/doc/commands/templates: move `commands_json` to `json_commands`
author
Alexandre Terrasa
<alexandre@moz-code.org>
Fri, 22 Jun 2018 04:01:30 +0000
(
00:01
-0400)
committer
Alexandre Terrasa
<alexandre@moz-code.org>
Fri, 22 Jun 2018 16:32:44 +0000
(12:32 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
34 files changed:
src/doc/api/api_base.nit
patch
|
blob
|
history
src/doc/templates/json_commands.nit
[moved from
src/doc/commands/commands_json.nit
with 99% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.nit
[moved from
src/doc/commands/tests/test_commands_json.nit
with 99% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_ancestors.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_ancestors.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_call.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_call.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_children.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_children.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_comment.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_comment.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_descendants.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_descendants.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_entity.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_entity.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_features.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_features.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_clone.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_clone.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_contrib_file.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_contrib_file.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_contrib_file_content.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_contrib_file_content.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_contributors.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_contributors.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_desc.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_desc.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_git.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_git.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_issues.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_issues.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_license.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_license.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_license_file.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_license_file.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_license_file_content.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_license_file_content.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_maintainer.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_maintainer.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_lin.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_lin.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_link.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_link.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_main_compile.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_main_compile.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_mains.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_mains.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_man_options.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_man_options.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_man_synopsis.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_man_synopsis.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_mentities.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_mentities.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_new.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_new.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_param.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_param.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_parents.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_parents.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_return.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_return.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_search.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_search.res
with 100% similarity]
patch
|
blob
|
history
src/doc/templates/tests/test_json_commands.sav/test_cmd_testing.res
[moved from
src/doc/commands/tests/test_commands_json.sav/test_cmd_testing.res
with 100% similarity]
patch
|
blob
|
history
diff --git
a/src/doc/api/api_base.nit
b/src/doc/api/api_base.nit
index
9e1cec2
..
95a6ff0
100644
(file)
--- a/
src/doc/api/api_base.nit
+++ b/
src/doc/api/api_base.nit
@@
-21,7
+21,8
@@
import popcorn::pop_repos
import popcorn::pop_json
import commands::commands_http
import popcorn::pop_json
import commands::commands_http
-import commands::commands_json
+
+import templates::json_commands
import templates::html_commands
# Nitweb config file.
import templates::html_commands
# Nitweb config file.
diff --git
a/src/doc/commands/commands_json.nit
b/src/doc/templates/json_commands.nit
similarity index 99%
rename from
src/doc/commands/commands_json.nit
rename to
src/doc/templates/json_commands.nit
index
9f197d7
..
aea7be3
100644
(file)
--- a/
src/doc/commands/commands_json.nit
+++ b/
src/doc/templates/json_commands.nit
@@
-13,7
+13,7
@@
# limitations under the License.
# Translate command results to json
# limitations under the License.
# Translate command results to json
-module commands_json
+module json_commands
import commands_catalog
import commands_graph
import commands_catalog
import commands_graph
diff --git
a/src/doc/commands/tests/test_commands_json.nit
b/src/doc/templates/tests/test_json_commands.nit
similarity index 99%
rename from
src/doc/commands/tests/test_commands_json.nit
rename to
src/doc/templates/tests/test_json_commands.nit
index
0713979
..
92728e0
100644
(file)
--- a/
src/doc/commands/tests/test_commands_json.nit
+++ b/
src/doc/templates/tests/test_json_commands.nit
@@
-12,11
+12,11
@@
# See the License for the specific language governing permissions and
# limitations under the License.
# See the License for the specific language governing permissions and
# limitations under the License.
-module test_commands_json is test
+module test_json_commands is test
import test_commands
intrude import doc::commands::commands_main
import test_commands
intrude import doc::commands::commands_main
-import doc::commands::commands_json
+import json_commands
class TestCommandsJson
super TestCommands
class TestCommandsJson
super TestCommands
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_ancestors.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_ancestors.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_ancestors.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_ancestors.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_call.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_call.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_call.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_call.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_children.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_children.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_children.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_children.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_comment.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_comment.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_comment.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_comment.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_descendants.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_descendants.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_descendants.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_descendants.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_entity.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_entity.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_entity.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_entity.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_features.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_features.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_features.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_features.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_clone.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_clone.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_clone.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_clone.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_contrib_file.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_contrib_file.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_contrib_file.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_contrib_file.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_contrib_file_content.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_contrib_file_content.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_contrib_file_content.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_contrib_file_content.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_contributors.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_contributors.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_contributors.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_contributors.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_desc.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_desc.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_desc.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_desc.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_git.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_git.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_git.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_git.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_issues.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_issues.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_issues.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_issues.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_license.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_license.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_license.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_license.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_license_file.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_license_file.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_license_file.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_license_file.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_license_file_content.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_license_file_content.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_license_file_content.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_license_file_content.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_maintainer.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_maintainer.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_ini_maintainer.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_ini_maintainer.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_lin.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_lin.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_lin.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_lin.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_link.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_link.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_link.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_link.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_main_compile.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_main_compile.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_main_compile.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_main_compile.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_mains.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_mains.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_mains.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_mains.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_man_options.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_man_options.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_man_options.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_man_options.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_man_synopsis.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_man_synopsis.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_man_synopsis.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_man_synopsis.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_mentities.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_mentities.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_mentities.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_mentities.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_new.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_new.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_new.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_new.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_param.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_param.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_param.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_param.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_parents.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_parents.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_parents.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_parents.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_return.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_return.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_return.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_return.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_search.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_search.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_search.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_search.res
diff --git
a/src/doc/commands/tests/test_commands_json.sav/test_cmd_testing.res
b/src/doc/templates/tests/test_json_commands.sav/test_cmd_testing.res
similarity index 100%
rename from
src/doc/commands/tests/test_commands_json.sav/test_cmd_testing.res
rename to
src/doc/templates/tests/test_json_commands.sav/test_cmd_testing.res