Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement file:* functions. #36

Merged
merged 2 commits into from
Oct 16, 2022
Merged

Implement file:* functions. #36

merged 2 commits into from
Oct 16, 2022

Conversation

skx
Copy link
Owner

@skx skx commented Oct 16, 2022

We've added:

  • file:lines
    • Return the contents of the given file, as a list of lines.
  • file:read
    • Return the string-content of the given file.
    • This replaces (slurp), which is left as an alias
  • file:stat
    • This returns a list of details about the given file.
    • Helpers are defined, in lisp, for accessing fields.

This closes #32.

We've added:

* file:lines
  * Return the contents of the given file, as a list of lines.
* file:read
  * Return the string-content of the given file.
  * This replaces (slurp), which is left as an alias
* file:stat
  * This returns a list of details about the given file.
  * Helpers are defined, in lisp, for accessing fields.
I'd forgotten to remove references to the slurpFn, and add help
text for everything.
@skx skx merged commit 9c4f68d into master Oct 16, 2022
@skx skx deleted the 32-files branch October 16, 2022 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement file:* functions
1 participant