Skip to content

Add more functions #44

@dmerejkowsky

Description

@dmerejkowsky

I often end up needed those in projects that depend on cli-ui, so might as well add them here.

First, h1, h2 and h3:

h1("Section")
h2("Sub section")
h2("Sub sub section")
Section
=======

Sub section
--------------

Sub sub section
+++++++++++++
  • Then hr which would print an horizontal line taking all of the horizontal space
info("foo")
hr()
foo
-----------------------------------------------

I'm open to suggestions regarding naming (re-using HTML syntax may not be the best idea)

Also, maybe we need h3 to h6 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions