Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: false, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "config", default: None, }, FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, FunctionHeadDestructuredArgument { identifier: "pkgs", default: None, }, FunctionHeadDestructuredArgument { identifier: "options", default: None, }, ], }, ), body: With( With { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 3, column: 6, }, end: Position { line: 3, column: 9, }, }, }, ), target: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 6, column: 3, }, end: Position { line: 6, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 6, column: 9, }, end: Position { line: 6, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 6, column: 16, }, end: Position { line: 6, column: 24, }, }, }, ), Raw( PartRaw { content: "prometheus", span: Span { start: Position { line: 6, column: 25, }, end: Position { line: 6, column: 35, }, }, }, ), Raw( PartRaw { content: "exporters", span: Span { start: Position { line: 6, column: 36, }, end: Position { line: 6, column: 45, }, }, }, ), Raw( PartRaw { content: "bird", span: Span { start: Position { line: 6, column: 46, }, end: Position { line: 6, column: 50, }, }, }, ), ], default: None, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "port", span: Span { start: Position { line: 9, column: 3, }, end: Position { line: 9, column: 7, }, }, }, ), ], to: Integer( Integer { value: "9324", span: Span { start: Position { line: 9, column: 10, }, end: Position { line: 9, column: 14, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "extraOpts", span: Span { start: Position { line: 10, column: 3, }, end: Position { line: 10, column: 12, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "birdVersion", span: Span { start: Position { line: 11, column: 5, }, end: Position { line: 11, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 11, column: 19, }, end: Position { line: 11, column: 27, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 12, column: 7, }, end: Position { line: 12, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 12, column: 14, }, end: Position { line: 12, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enum", span: Span { start: Position { line: 12, column: 20, }, end: Position { line: 12, column: 24, }, }, }, ), ], default: None, }, ), arguments: [ List( List { elements: [ Integer( Integer { value: "1", span: Span { start: Position { line: 12, column: 27, }, end: Position { line: 12, column: 28, }, }, }, ), Integer( Integer { value: "2", span: Span { start: Position { line: 12, column: 29, }, end: Position { line: 12, column: 30, }, }, }, ), ], span: Span { start: Position { line: 12, column: 25, }, end: Position { line: 12, column: 32, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 13, column: 7, }, end: Position { line: 13, column: 14, }, }, }, ), ], to: Integer( Integer { value: "2", span: Span { start: Position { line: 13, column: 17, }, end: Position { line: 13, column: 18, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 14, column: 7, }, end: Position { line: 14, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 14, column: 21, }, end: Position { line: 14, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 14, column: 25, }, end: Position { line: 14, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Specifies whether BIRD1 or BIRD2 is in use.\n", span: Span { start: Position { line: 15, column: 1, }, end: Position { line: 16, column: 7, }, }, }, ), ], span: Span { start: Position { line: 14, column: 31, }, end: Position { line: 16, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 11, column: 28, }, end: Position { line: 17, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "birdSocket", span: Span { start: Position { line: 18, column: 5, }, end: Position { line: 18, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 18, column: 18, }, end: Position { line: 18, column: 26, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 19, column: 7, }, end: Position { line: 19, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 19, column: 14, }, end: Position { line: 19, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 19, column: 20, }, end: Position { line: 19, column: 24, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 20, column: 7, }, end: Position { line: 20, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/run/bird/bird.ctl", span: Span { start: Position { line: 20, column: 18, }, end: Position { line: 20, column: 36, }, }, }, ), ], span: Span { start: Position { line: 20, column: 17, }, end: Position { line: 20, column: 37, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 21, column: 7, }, end: Position { line: 21, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 21, column: 21, }, end: Position { line: 21, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 21, column: 25, }, end: Position { line: 21, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Path to BIRD2 (or BIRD1 v4) socket.\n", span: Span { start: Position { line: 22, column: 1, }, end: Position { line: 23, column: 7, }, }, }, ), ], span: Span { start: Position { line: 21, column: 31, }, end: Position { line: 23, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 18, column: 27, }, end: Position { line: 24, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "newMetricFormat", span: Span { start: Position { line: 25, column: 5, }, end: Position { line: 25, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 25, column: 23, }, end: Position { line: 25, column: 31, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 26, column: 7, }, end: Position { line: 26, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 26, column: 14, }, end: Position { line: 26, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 26, column: 20, }, end: Position { line: 26, column: 24, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 27, column: 7, }, end: Position { line: 27, column: 14, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 27, column: 17, }, end: Position { line: 27, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 28, column: 7, }, end: Position { line: 28, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 28, column: 21, }, end: Position { line: 28, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 28, column: 25, }, end: Position { line: 28, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Enable the new more-generic metric format.\n", span: Span { start: Position { line: 29, column: 1, }, end: Position { line: 30, column: 7, }, }, }, ), ], span: Span { start: Position { line: 28, column: 31, }, end: Position { line: 30, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 25, column: 32, }, end: Position { line: 31, column: 6, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 10, column: 15, }, end: Position { line: 32, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceOpts", span: Span { start: Position { line: 33, column: 3, }, end: Position { line: 33, column: 14, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 34, column: 5, }, end: Position { line: 34, column: 18, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "SupplementaryGroups", span: Span { start: Position { line: 35, column: 7, }, end: Position { line: 35, column: 26, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "singleton", span: Span { start: Position { line: 35, column: 29, }, end: Position { line: 35, column: 38, }, }, }, ), arguments: [ IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 35, column: 43, }, end: Position { line: 35, column: 46, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "birdVersion", span: Span { start: Position { line: 35, column: 47, }, end: Position { line: 35, column: 58, }, }, }, ), ], default: None, }, ), operator: EqualTo, right: Integer( Integer { value: "1", span: Span { start: Position { line: 35, column: 62, }, end: Position { line: 35, column: 63, }, }, }, ), }, ), then: String( String_ { parts: [ Raw( PartRaw { content: "bird", span: Span { start: Position { line: 35, column: 70, }, end: Position { line: 35, column: 74, }, }, }, ), ], span: Span { start: Position { line: 35, column: 69, }, end: Position { line: 35, column: 75, }, }, }, ), else_: String( String_ { parts: [ Raw( PartRaw { content: "bird2", span: Span { start: Position { line: 35, column: 82, }, end: Position { line: 35, column: 87, }, }, }, ), ], span: Span { start: Position { line: 35, column: 81, }, end: Position { line: 35, column: 88, }, }, }, ), span: Span { start: Position { line: 35, column: 40, }, end: Position { line: 35, column: 88, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 36, column: 7, }, end: Position { line: 36, column: 16, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "", span: Span { start: Position { line: 37, column: 1, }, end: Position { line: 37, column: 9, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 37, column: 11, }, end: Position { line: 37, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "prometheus-bird-exporter", span: Span { start: Position { line: 37, column: 16, }, end: Position { line: 37, column: 40, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/bird_exporter \\\n -web.listen-address ", span: Span { start: Position { line: 37, column: 1, }, end: Position { line: 38, column: 31, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 38, column: 33, }, end: Position { line: 38, column: 36, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "listenAddress", span: Span { start: Position { line: 38, column: 37, }, end: Position { line: 38, column: 50, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: ":", span: Span { start: Position { line: 37, column: 1, }, end: Position { line: 38, column: 52, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 38, column: 54, }, end: Position { line: 38, column: 62, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 38, column: 63, }, end: Position { line: 38, column: 66, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "port", span: Span { start: Position { line: 38, column: 67, }, end: Position { line: 38, column: 71, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: " \\\n -bird.socket ", span: Span { start: Position { line: 37, column: 1, }, end: Position { line: 39, column: 24, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 39, column: 26, }, end: Position { line: 39, column: 29, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "birdSocket", span: Span { start: Position { line: 39, column: 30, }, end: Position { line: 39, column: 40, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " \\\n -bird.v2=", span: Span { start: Position { line: 37, column: 1, }, end: Position { line: 40, column: 20, }, }, }, ), Interpolation( PartInterpolation { expression: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 40, column: 25, }, end: Position { line: 40, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "birdVersion", span: Span { start: Position { line: 40, column: 29, }, end: Position { line: 40, column: 40, }, }, }, ), ], default: None, }, ), operator: EqualTo, right: Integer( Integer { value: "2", span: Span { start: Position { line: 40, column: 44, }, end: Position { line: 40, column: 45, }, }, }, ), }, ), then: String( String_ { parts: [ Raw( PartRaw { content: "true", span: Span { start: Position { line: 40, column: 52, }, end: Position { line: 40, column: 56, }, }, }, ), ], span: Span { start: Position { line: 40, column: 51, }, end: Position { line: 40, column: 57, }, }, }, ), else_: String( String_ { parts: [ Raw( PartRaw { content: "false", span: Span { start: Position { line: 40, column: 64, }, end: Position { line: 40, column: 69, }, }, }, ), ], span: Span { start: Position { line: 40, column: 63, }, end: Position { line: 40, column: 70, }, }, }, ), span: Span { start: Position { line: 40, column: 22, }, end: Position { line: 40, column: 70, }, }, }, ), }, ), Raw( PartRaw { content: " \\\n -format.new=", span: Span { start: Position { line: 37, column: 1, }, end: Position { line: 41, column: 23, }, }, }, ), Interpolation( PartInterpolation { expression: IfThenElse( IfThenElse { predicate: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 41, column: 28, }, end: Position { line: 41, column: 31, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "newMetricFormat", span: Span { start: Position { line: 41, column: 32, }, end: Position { line: 41, column: 47, }, }, }, ), ], default: None, }, ), then: String( String_ { parts: [ Raw( PartRaw { content: "true", span: Span { start: Position { line: 41, column: 54, }, end: Position { line: 41, column: 58, }, }, }, ), ], span: Span { start: Position { line: 41, column: 53, }, end: Position { line: 41, column: 59, }, }, }, ), else_: String( String_ { parts: [ Raw( PartRaw { content: "false", span: Span { start: Position { line: 41, column: 66, }, end: Position { line: 41, column: 71, }, }, }, ), ], span: Span { start: Position { line: 41, column: 65, }, end: Position { line: 41, column: 72, }, }, }, ), span: Span { start: Position { line: 41, column: 25, }, end: Position { line: 41, column: 72, }, }, }, ), }, ), Raw( PartRaw { content: " \\\n ", span: Span { start: Position { line: 37, column: 1, }, end: Position { line: 42, column: 11, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatStringsSep", span: Span { start: Position { line: 42, column: 13, }, end: Position { line: 42, column: 29, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: " \\\n ", span: Span { start: Position { line: 42, column: 31, }, end: Position { line: 42, column: 38, }, }, }, ), ], span: Span { start: Position { line: 42, column: 30, }, end: Position { line: 42, column: 39, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 42, column: 40, }, end: Position { line: 42, column: 43, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "extraFlags", span: Span { start: Position { line: 42, column: 44, }, end: Position { line: 42, column: 54, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 37, column: 1, }, end: Position { line: 43, column: 7, }, }, }, ), ], span: Span { start: Position { line: 36, column: 19, }, end: Position { line: 43, column: 9, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "RestrictAddressFamilies", span: Span { start: Position { line: 44, column: 7, }, end: Position { line: 44, column: 30, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "AF_UNIX", span: Span { start: Position { line: 46, column: 10, }, end: Position { line: 46, column: 17, }, }, }, ), ], span: Span { start: Position { line: 46, column: 9, }, end: Position { line: 46, column: 18, }, }, }, ), ], span: Span { start: Position { line: 44, column: 33, }, end: Position { line: 47, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 34, column: 21, }, end: Position { line: 48, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 33, column: 17, }, end: Position { line: 49, column: 4, }, }, }, ), }, ), ], span: Span { start: Position { line: 8, column: 1, }, end: Position { line: 50, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 50, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 50, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 50, column: 2, }, }, }, )