Skip to content

Command Line Program

waldo-withers edited this page Mar 13, 2015 · 19 revisions

In general, the SketchFinder application finds the projects and libraries in a sketchbook folder just as the Arduino IDE would. It prints them to the console in an indented tree. Several options are available that affect how it displays files.

##Input All options can be found by calling SketchFinder with the argument -h, --h, -help, or --help.

Otherwise, the input is the filepath of the folder in which the sketches are located followed by any number of these arguments:

  • 'hideExtensions' - Hides the extensions of the files it shows.
  • 'showProjectFiles' - Shows the actual files in a project.
  • 'hideLibraryFiles' - Hides the actual files in a library.
  • 'showHiddenFiles' - Shows files that are hidden, as determined by Java.
  • 'showUnderscoreFiles' - Shows files whose names start with an underscore.

##Output SketchFinder returns an indented tree of the folders and files, in alphabetical order. By default, the files of projects are not displayed, only the folders, but the files of libraries are. Also by default, extensions are shown for all files and any files that are hidden or begin with an underscore are not displayed. These options can be changed as explained above.

###Example

For example, the command: 'java SketchFinder.java /sketchFinder/test_sketchbooks/seekerakos hideProjectFiles'

Might very well return:

'Projects:\n> seekerakos\n > receiver\n > transimiter\n > transmiter_ino\n\n----------------------------------------------------------------------\n> libraries\n readme.txt'

Clone this wiki locally