Package edu.uiuc.ncsa.security.util.help
Class MarkdownConverter
- java.lang.Object
-
- edu.uiuc.ncsa.security.util.help.MarkdownConverter
-
public class MarkdownConverter extends Object
A command line tool that will take a help file and turn it into a Github style markdown document. This is very simple minded. Very! The interactive help is definitive, not the markdown.Created by Jeff Gaynor
on 2/9/23 at 4:56 PM
-
-
Field Summary
Fields Modifier and Type Field Description static StringINPUT_SWITCHstatic StringMD_LINE_BREAKstatic StringOUTPUT_SWITCHstatic intRC_FAILstatic intRC_HELPstatic intRC_OKstatic StringRESOURCE_SWITCHstatic StringVERBOSE_SWITCH
-
Constructor Summary
Constructors Constructor Description MarkdownConverter()MarkdownConverter(InputLine inputLine)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconvert()protected voidconvertEntry(String name, String altName, String content, String examples)HelpUtilgetHelpUtil()PrintStreamgetOutput()protected intinit(InputLine inputLine)protected intinit(List<String> resources, List<String> inFiles, String outFile, boolean isVerbose)booleanisSysOut()static voidmain(String[] args)protected voidsay()Prints a blank lineprotected voidsay(String x)voidsetHelpUtil(HelpUtil helpUtil)voidsetOutput(PrintStream output)voidsetSysOut(boolean sysOut)protected voidshowHelp()protected List<String>toList(String x)
-
-
-
Field Detail
-
INPUT_SWITCH
public static String INPUT_SWITCH
-
RESOURCE_SWITCH
public static String RESOURCE_SWITCH
-
OUTPUT_SWITCH
public static String OUTPUT_SWITCH
-
VERBOSE_SWITCH
public static String VERBOSE_SWITCH
-
RC_OK
public static int RC_OK
-
RC_FAIL
public static int RC_FAIL
-
RC_HELP
public static int RC_HELP
-
MD_LINE_BREAK
public static String MD_LINE_BREAK
-
-
Constructor Detail
-
MarkdownConverter
public MarkdownConverter(InputLine inputLine)
-
MarkdownConverter
public MarkdownConverter()
-
-
Method Detail
-
init
protected int init(InputLine inputLine)
-
init
protected int init(List<String> resources, List<String> inFiles, String outFile, boolean isVerbose)
-
isSysOut
public boolean isSysOut()
-
setSysOut
public void setSysOut(boolean sysOut)
-
getOutput
public PrintStream getOutput()
-
setOutput
public void setOutput(PrintStream output)
-
say
protected void say()
Prints a blank line
-
say
protected void say(String x)
-
showHelp
protected void showHelp()
-
getHelpUtil
public HelpUtil getHelpUtil()
-
setHelpUtil
public void setHelpUtil(HelpUtil helpUtil)
-
convertEntry
protected void convertEntry(String name, String altName, String content, String examples)
-
convert
protected void convert()
-
-