# eb-local.modulerc ::::{zig:module} eb-local.modulerc :file: src/modulerc.zig :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/modulerc.zig `eb-local modulerc`: add operator-selected defaults, aliases and hides. :::: ## Types ::::{zig:type} eb-local.modulerc.Alias :signature: pub const Alias = struct :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/modulerc.zig#L9 One `module_alias` directive. :::{zig:field} eb-local.modulerc.Alias.name :signature: name: []const u8 :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/modulerc.zig#L10 ::: :::{zig:field} eb-local.modulerc.Alias.target :signature: target: []const u8 :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/modulerc.zig#L11 ::: :::: ::::{zig:type} eb-local.modulerc.Options :signature: pub const Options = struct :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/modulerc.zig#L15 The module tree and operator-selected directives for `modulerc`. :::{zig:field} eb-local.modulerc.Options.tree :signature: tree: []const u8 = "" :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/modulerc.zig#L16 ::: :::{zig:field} eb-local.modulerc.Options.defaults :signature: defaults: []const []const u8 = &.{} :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/modulerc.zig#L17 ::: :::{zig:field} eb-local.modulerc.Options.aliases :signature: aliases: []const Alias = &.{} :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/modulerc.zig#L18 ::: :::{zig:field} eb-local.modulerc.Options.hidden :signature: hidden: []const []const u8 = &.{} :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/modulerc.zig#L19 ::: :::{zig:field} eb-local.modulerc.Options.dry_run :signature: dry_run: bool = false :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/modulerc.zig#L20 ::: :::{zig:field} eb-local.modulerc.Options.check :signature: check: bool = false :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/modulerc.zig#L21 ::: :::{zig:field} eb-local.modulerc.Options.json :signature: json: bool = false :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/modulerc.zig#L22 ::: :::: ## Functions :::{zig:function} eb-local.modulerc.render :signature: pub fn render(a: std.mem.Allocator, previous: []const u8, opts: Options) ![]u8 :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/modulerc.zig#L82 Add every requested directive to `previous`, without duplicating a line. ::: :::{zig:function} eb-local.modulerc.run :signature: pub fn run(io: std.Io, a: std.mem.Allocator, opts: Options) u8 :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/modulerc.zig#L102 Write, print, or check the resulting `.modulerc.lua`. :::