mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
sorting command list in Commands
This commit is contained in:
@@ -79,18 +79,6 @@ allCommands pgf = Map.fromAscList [
|
|||||||
longname = "empty",
|
longname = "empty",
|
||||||
synopsis = "Takes away all languages and resets all global flags."
|
synopsis = "Takes away all languages and resets all global flags."
|
||||||
}),
|
}),
|
||||||
("ph", emptyCommandInfo {
|
|
||||||
longname = "print_history",
|
|
||||||
synopsis = "print readline history",
|
|
||||||
explanation = "Prints the commands issued during the GF session.\n"++
|
|
||||||
"The result is readable by the eh command.\n"++
|
|
||||||
"example:\n"++
|
|
||||||
" ph | wf foo.hist -- save the history into a file"
|
|
||||||
}),
|
|
||||||
("q", emptyCommandInfo {
|
|
||||||
longname = "quit",
|
|
||||||
synopsis = "exit GF interpreter"
|
|
||||||
}),
|
|
||||||
("gr", emptyCommandInfo {
|
("gr", emptyCommandInfo {
|
||||||
longname = "generate_random",
|
longname = "generate_random",
|
||||||
synopsis = "generates a list of random trees, by default one tree",
|
synopsis = "generates a list of random trees, by default one tree",
|
||||||
@@ -176,6 +164,18 @@ allCommands pgf = Map.fromAscList [
|
|||||||
"source.",
|
"source.",
|
||||||
exec = \opts _ -> return $ fromString $ prGrammar opts,
|
exec = \opts _ -> return $ fromString $ prGrammar opts,
|
||||||
flags = ["cat","lang","printer"]
|
flags = ["cat","lang","printer"]
|
||||||
|
}),
|
||||||
|
("ph", emptyCommandInfo {
|
||||||
|
longname = "print_history",
|
||||||
|
synopsis = "print readline history",
|
||||||
|
explanation = "Prints the commands issued during the GF session.\n"++
|
||||||
|
"The result is readable by the eh command.\n"++
|
||||||
|
"example:\n"++
|
||||||
|
" ph | wf foo.hist -- save the history into a file"
|
||||||
|
}),
|
||||||
|
("q", emptyCommandInfo {
|
||||||
|
longname = "quit",
|
||||||
|
synopsis = "exit GF interpreter"
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
where
|
where
|
||||||
|
|||||||
Reference in New Issue
Block a user