Factor out common code from GF.Command.Commands and GF.Command.Commands2

Created module GF.Command.CommonCommands with ~250 lines of code for commands
that do not depend on the type of PGF in the environemnt, either because they
don't use the PGF or because they are just documented here and implemented
elsewhere.

TODO: further refactoring so that documentation and implementation of
*all* commands can be kept together.
This commit is contained in:
hallgren
2015-08-10 16:30:17 +00:00
parent 230d9780b7
commit f371a020f9
5 changed files with 265 additions and 459 deletions

View File

@@ -59,8 +59,6 @@ compact [] = []
compact ([]:xs@([]:_)) = compact xs
compact (x:xs) = x:compact xs
mkEx s = let (command,expl) = break (=="--") (words s) in (unwords command, unwords (drop 1 expl))
helpCommand allCommands =
("h", emptyCommandInfo {
longname = "help",