Sign in

    Delthin/moon_repomix/config does not have a README file

    ConfigError

    pub(all) suberror ConfigError {
    InvalidJson
    UnknownField(String)
    InvalidValue(String)
    UnknownOption(String)
    MissingValue(String)
    Conflict(String)
    MultipleDirectories
    } derive(Eq,
    Debug
    )

    Error payloads contain field/option names, never source JSON or values.

    ConfigError::equal

    fn ConfigError::equal(ConfigError, ConfigError) -> Bool

    ConfigError::not_equal

    fn ConfigError::not_equal(x : ConfigError, y : ConfigError) -> Bool

    Action

    pub(all) enum Action {
    Pack
    Init
    Help
    Version
    } derive(Eq,
    Debug
    )

    Action::equal

    fn Action::equal(Action, Action) -> Bool

    Action::not_equal

    fn Action::not_equal(x : Action, y : Action) -> Bool

    Action::to_repr

    Cli

    pub(all) struct Cli {
    directory : String
    config_path : String?
    action : Action
    stdout : Bool
    quiet : Bool
    verbose : Bool
    patch : Patch
    } derive(
    Debug
    )

    All paths are unmodified user paths; this package performs no I/O.

    Cli::to_repr

    Options

    pub(all) struct Options {
    directory : String
    output : String
    stdout : Bool
    style : Style
    include_patterns : Array[String]
    ignore : Array[String]
    use_gitignore : Bool
    use_dot_ignore : Bool
    use_default_patterns : Bool
    security_check : Bool
    encoding : String
    token_budget : Int?
    max_file_size : Int
    tokenizer_path : String?
    quiet : Bool
    verbose : Bool
    } derive(
    Debug
    )

    Options::to_repr

    Patch

    pub(all) struct Patch {
    output : String?
    style : Style?
    include_patterns : Array[String]
    ignore : Array[String]
    use_gitignore : Bool?
    use_dot_ignore : Bool?
    use_default_patterns : Bool?
    security_check : Bool?
    encoding : String?
    token_budget : Int?
    max_file_size : Int?
    tokenizer_path : String?
    } derive(
    Debug
    )

    Absent scalars stay None; lists are additive, not replacement values.

    Patch::empty

    fn Patch::empty() -> Patch

    Patch::to_repr

    Style

    pub(all) enum Style {
    Xml
    Markdown
    } derive(Eq,
    Debug
    )

    Style::equal

    fn Style::equal(Style, Style) -> Bool

    Style::not_equal

    fn Style::not_equal(x : Style, y : Style) -> Bool

    Style::to_repr

    parse_cli

    fn parse_cli(args : Array[String]) -> Cli raise ConfigError

    Arguments exclude argv[0]. Supports --key=value and -- to end option parsing.

    parse_json

    fn parse_json(text : String) -> Patch raise ConfigError

    Strict supported subset of Repomix JSON. No reads, path normalization or defaults.

    resolve

    fn resolve(cli : Cli, json : Patch?) -> Options raise ConfigError

    Defaults -> selected JSON -> explicit CLI. No paths are resolved here.

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io