Skip to content

Commit

Permalink
added sel2pb command to bike.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rdhyee committed Sep 30, 2023
1 parent 62005c4 commit a161fe9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions bike/bike.py
Expand Up @@ -44,7 +44,7 @@ def merge_consecutive_codeblocks(elem, doc):
def bike_selected_to_md(heading_level):
bike = Bike()

d = bike.windows[1].document
d = bike.windows[0].document
etree = d.lxml_etree(from_=d.selection_rows)

# what if I export just the rows under the root ul?
Expand Down Expand Up @@ -106,14 +106,19 @@ def bike_selected_to_md(heading_level):
)


@click.command()
@click.group()
def main():
pass


@main.command()
@click.option(
"--heading_level",
envvar="KMVAR_Heading_Level",
default=1,
help="Heading level to use for the top level of the document.",
)
def main(heading_level):
def sel2pb(heading_level):
bike_selected_to_md(heading_level)


Expand Down

0 comments on commit a161fe9

Please sign in to comment.