Releases: daelvn/alfons
Releases · daelvn/alfons
v5.3
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 arrayentries
: Turns a table into an array of key-value tuplesfromEntries
: Reverses the process ofentries
Alfons 5.2
- Taskfile documentation. You can now document your Taskfiles for automatic help messages and shell completion.
- Check the documentation for more info.
- 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 linessplit
: Split any string by any patternsanitize
: Neutralizes pattern magic characters in stringskeys
: Get the keys of a table as an arrayslice
: Creates a slice of an arraymap
,reduce
,filter
do to arrays what you would expectcontains
has been rewritten
Full Changelog: v5.1...v5.2
Alfons 5.1
What's Changed
Added two functions to the Alfons environment:
cmdread
usessafePopen
/io.popen
to execute a command and return all of its output.safePopen
is the equivalent ofsafeOpen
forio.popen
Full Changelog: v5.0.2...v5.1
Alfons 5
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 tofilekit
, but topath.fs
path
,fsinfo
andenv
have been added to the environment, corresponding topath
,path.info
andpath.env
respectively.
- Additions to the environment
safeOpen
: Open IO handles safelylistAll
: Returns a list of all files and directories recursively.copy
: Recursive file copydelete
: Recursive deleteisEmpty
: Checks if a directory is empty
- Changes to the environment
- All FS operations don't deal in absolute paths anymore
wildcard
andiwildcard
may exhibit slightly different behavior.