Skip to content

Releases: daelvn/alfons

v5.3

09 Aug 11:17
Compare
Choose a tag to compare

Changelog

5.3

  • 5.3 (09.08.2024) Added Yuescript support. Added a few functions.

  • Yuescript support. You can now use Alfons.yue files (or any taskfile that ends in .yue) to load in Yuescript tasks.

  • Additions to the environment.

    • values: Get the values of a table as an array
    • entries: Turns a table into an array of key-value tuples
    • fromEntries: Reverses the process of entries

Alfons 5.2

08 Jun 03:27
Compare
Choose a tag to compare
  • Taskfile documentation. You can now document your Taskfiles for automatic help messages and shell completion.
  • Help messages. You can now display a help message with --help, or even get help for a specific task with --help [task].
    • This help message can be automatically generated from the detected tasks in the Taskfile.
    • It works best when you document your Taskfile, so you can add descriptions and options.
  • Shell autocompletion. Shell autocompletion is now available in Zsh and Bash flavors.
    • The Zsh flavor is by far the most complete, since Zsh's completion system is slightly more capable.
    • Bash is only able to list tasks, and sometimes options or flags for those tasks. Use Zsh.
    • Check the documentation for more info and install instructions.
  • Additions to the environment.
    • lines: Split a string into lines
    • split: Split any string by any pattern
    • sanitize: Neutralizes pattern magic characters in strings
    • keys: Get the keys of a table as an array
    • slice: Creates a slice of an array
    • map, reduce, filter do to arrays what you would expect
    • contains has been rewritten

Full Changelog: v5.1...v5.2

Alfons 5.1

13 Oct 13:27
Compare
Choose a tag to compare

What's Changed

Added two functions to the Alfons environment:

  • cmdread uses safePopen/io.popen to execute a command and return all of its output.
  • safePopen is the equivalent of safeOpen for io.popen

Full Changelog: v5.0.2...v5.1

Alfons 5

23 Jan 03:49
Compare
Choose a tag to compare

An update where I replace ol' inefficient filekit with a much more sane lpath. It comes with some small API changes described here:

  • Compatibility with ComputerCraft has been removed. Alfons 5 is not compatible with it.
  • Replaced filekit with lpath
    • fs in the environment no longer points to filekit, but to path.fs
    • path, fsinfo and env have been added to the environment, corresponding to path, path.info and path.env respectively.
  • Additions to the environment
    • safeOpen: Open IO handles safely
    • listAll: Returns a list of all files and directories recursively.
    • copy: Recursive file copy
    • delete: Recursive delete
    • isEmpty: Checks if a directory is empty
  • Changes to the environment
    • All FS operations don't deal in absolute paths anymore
    • wildcard and iwildcard may exhibit slightly different behavior.