Method: Yast::CommandLineClass#PrintHead

Defined in:
library/commandline/src/modules/CommandLine.rb

#PrintHeadObject

Print a nice heading for this module



565
566
567
568
569
570
571
572
573
574
575
# File 'library/commandline/src/modules/CommandLine.rb', line 565

def PrintHead
  # translators: command line interface header, %1 is identification of the module
  head = Builtins.sformat(
    _("YaST Configuration Module %1\n"),
    Ops.get_string(@modulecommands, "id", "YaST")
  )
  head += "-" * (head.size - 1) # -1 to remove newline char from count
  head = Ops.add(Ops.add("\n", head), "\n")

  Print(head)
end