eb-local.modulerc

module eb-local.modulerc  src/modulerc.zig[source][autodoc]

eb-local modulerc: add operator-selected defaults, aliases and hides.

Types

pub const Alias = struct[source][autodoc]

One module_alias directive.

name: []const u8[source]
target: []const u8[source]
pub const Options = struct[source][autodoc]

The module tree and operator-selected directives for modulerc.

tree: []const u8 = ""[source]
defaults: []const []const u8 = &.{}[source]
aliases: []const Alias = &.{}[source]
hidden: []const []const u8 = &.{}[source]
dry_run: bool = false[source]
check: bool = false[source]
json: bool = false[source]

Functions

pub fn render(a: std.mem.Allocator, previous: []const u8, opts: Options) ![]u8[source][autodoc]

Add every requested directive to previous, without duplicating a line.

pub fn run(io: std.Io, a: std.mem.Allocator, opts: Options) u8[source][autodoc]

Write, print, or check the resulting .modulerc.lua.