Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...



Excerpt

This tutorial goes step by step through creating a custom widget.


Table of Contents

Table of Contents
outlinetrue
excludeTable of Contents

...

Code Block
languagepowershell
titleSetting variables
set CLUSTER="..."
set TOKEN="..."

...


Replace all the "..." preferences with their actual values.

...

Code Block
languagepowershell
squirro_widget ^
    --cluster %CLUSTER% ^
    --token %TOKEN% ^
    upload ^
    --config '{"directory": "result_list_fancy", "title": "Fancy Result List", "baseWidget": "Search", "author": "Developer Name", "description": "Displays a fancy result list"}'

Note that the lines have been wrapped with the circumflex (^) at the end of each line. On Mac and Linux you will need to use backslash (\) instead.

This command assumes that you have set the variables CLUSTER and TOKEN as described in the Set up Connection section above.

...

Code Block
languagepowershell
squirro_widget ^
    --cluster %CLUSTER% ^
    --token %TOKEN% ^
    upload ^
    --config '{"directory": "clock", "title": "Clock"}'

Note that the lines have been wrapped with the circumflex (^) at the end of each line. On Mac and Linux you will need to use backslash (\) instead.

This command assumes that you have set the variables CLUSTER and TOKEN as described in the Set up Connection section above.

...