clibu library

Classes

CommandLineApp
Key command-line app class. The entire app lives in this class.

Functions

fileExists(String filePath) bool
Checks whether a file exists.
getFileContents(String filePath) String
Returns the contents of a file as a string.
getJSONMap(String jsonString) Map<String, dynamic>
Returns a JSON string as a map.
mapToJSON(Map<String, dynamic> jsonData) String
Converts a Dart Map to a JSON string.
runCommand(String shellCommand) → void
Runs a shell command and prints the output from STDERR and STDOUT.
testFileFunctions() → void
A function to test all of the file functions.
writeToFile(String filePath, String fileContents) → void
Writes a string to a file.