Skip to content

WinTask 1.7: The Function Update

Latest

Choose a tag to compare

@devpython88 devpython88 released this 10 Oct 13:20
· 6 commits to main since this release
c26b093

Bug fixes

  • List switch

/list switch wasn't using custom config file if provided

What's new?

  1. Function

Functions are just tasks but they can be used multiple times without needing to copy-n-paste code.
Example:

{
    "functions": {
        "myfunc": {
            "commands": ["echo My function is called!"]
        }
    },
    "mytask": {
        "commands": ["@myfunc", "echo my function was called!"]
    }
}
  1. Templates (Beta)

Just by the name, you already understand that these are predefined wintask config files.
Currently, There is only one template, Basic.
To use a template: wintask /gen {template-name}
For Basic it would be wintask /gen basic