Skip to content

global plugin_template


methods


M.run_arbitrary_thing


function M.run_arbitrary_thing(names: string[]?) ->  nil

@param names - Some text to print out. e.g. {"a", "b", "c"}.

Print the names.

M.run_copy_logs


function M.run_copy_logs(path: string?) ->  nil

@param path - A path on-disk to look for logs. If none is given, the default fallback location is used instead.

Copy the log data from the given path to the user's clipboard.

M.run_hello_world_say_phrase


function M.run_hello_world_say_phrase(
  phrase: string[],
  repeat_: number?,
  style: string?
) ->  nil

@param phrase - The text to say.

@param repeat_ - A 1-or-more value. The number of times to print word.

@param style - Control how the text should be shown.

Print phrase according to the other options.

M.run_hello_world_say_word


function M.run_hello_world_say_word(
  word: string,
  repeat_: number?,
  style: string?
) ->  nil

@param word - The text to say.

@param repeat_ - A 1-or-more value. The number of times to print word.

@param style - Control how the text should be shown.

Print phrase according to the other options.

M.run_goodnight_moon_count_sheep


function M.run_goodnight_moon_count_sheep(count: number) ->  nil

@param count - Prints 1 sheep per count. A value that is 1-or-greater.

Count a sheep for each count.

M.run_goodnight_moon_read


function M.run_goodnight_moon_read(book: string) ->  nil

@param book - The name of the book.

Print the name of the book.

M.run_goodnight_moon_sleep


function M.run_goodnight_moon_sleep(count: number?) ->  nil

@param count - Prints 1 Zzz per count. A value that is 1-or-greater.

Print Zzz each count.