Closed grant closed 6 years ago
How do we display function names?
example :
functionName
to optional. ( clasp run [functionName] [--nondev]
)functionName
, use Inquirer to list function names.Use inquirer
to prompt
the user for function names, like we do for create
, clone
, etc.
clasp run [functionName]
functionName
, use inquirer#prompt to get the name. Provide a list of possible names from here: script.projects.getContent#files[N]#functionSet[O]#name
(map over all files)script.run
with the name.Eventually add autocompletion like this: https://www.npmjs.com/package/inquirer-autocomplete-prompt#example
I added fuzzy filtering to the autocompletion. For some reason, the inquirer prompt wasn't quite working when I tried it.
Expected Behavior
clasp run
by itself should give a list of possible function names.functionSet
property. (8/2/2018)Actual Behavior
We don't use functionSet.