Skip to content

feat: Allow import-trees to be used in argument as if they were paths. - #12

Merged
vic merged 1 commit into
mainfrom
vic/jj-change-ymmnoputsxpm
Jun 25, 2025
Merged

vic merged 1 commit into
mainfrom
vic/jj-change-ymmnoputsxpm

Conversation

@vic

@vic vic commented Jun 25, 2025

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 25, 2025 21:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces support for treating import-tree objects as if they were filesystem paths.

  • Updates default.nix by adding helper functions for handling import-trees.
  • Adds tests in checkmate.nix to verify that import-trees work as arguments.
  • Updates README.md to document the new behavior.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
default.nix Adds helper functions (listFilesRecursive, treeFiles, isImportTree) to enable import-tree handling.
checkmate.nix Introduces a test case validating import-tree objects used as paths.
README.md Updates documentation to describe the new usage of import-tree objects.
Comments suppressed due to low confidence (2)

default.nix:33

  • [nitpick] Consider renaming 'treeFiles' to 'importTreeFiles' to better reflect its purpose and improve code clarity in handling import-tree objects.
          treeFiles = t: (t.withLib lib).leafs.result;

checkmate.nix:170

  • [nitpick] Consider using a more conventional and concise attribute name (e.g., 'test_import_tree_path_handling') instead of a long descriptive string to maintain consistency and ease of reference.
        import-tree."test can take other import-trees as if they were paths" = {

@vic
vic merged commit 6aab7a2 into main Jun 25, 2025
@vic
vic deleted the vic/jj-change-ymmnoputsxpm branch June 26, 2025 00:20
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.

2 participants