Sign in

    Delthin/moon_repomix/selection does not have a README file

    SelectionError

    pub(all) suberror SelectionError {
    InvalidRoot(String)
    InvalidPattern(source~ : String, line~ : Int, pattern~ : String, detail~ : String)
    InvalidRuleFile(String)
    InvalidGitMetadata(String)
    InvalidOutput(String)
    }

    Validation failures. Filesystem failures and cancellation propagate unchanged.

    Candidate

    pub(all) struct Candidate {
    path : String
    relative : String
    }

    An ordinary file, not yet opened or read. Relative uses '/' and original Unicode.

    Selection

    pub(all) struct Selection {
    root : String
    files : Array[Candidate]
    skipped : Array[Skipped]
    }

    SelectionOptions

    pub(all) struct SelectionOptions {
    include_patterns : Array[String]
    ignore : Array[String]
    use_gitignore : Bool
    use_dot_ignore : Bool
    use_default_patterns : Bool
    output : String?
    }

    Positive include filters and independent exclusion layers. Output must be absolute.

    SelectionOptions::default

    Enable project ignore files and built-in exclusions, with no include restriction.

    Skipped

    pub(all) struct Skipped {
    path : String
    reason : String
    }

    Path is root-relative. Reasons are documented in docs/file-selection.md.

    select

    async fn select(root : String, options : SelectionOptions) -> Selection

    Traverse an absolute ordinary directory without opening candidate files. Ignore files are read strictly; I/O and cancellation propagate unchanged. Files and skips are sorted by UTF-8 bytes of root-relative paths.

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io