Skip to content

Commit

Permalink
Merge pull request #77 from Suletta-Majo/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Suletta-Majo authored Apr 23, 2024
2 parents e466643 + f625da5 commit ba4bb00
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 17 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/uhelp_autodeb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ jobs:
path: |
uh*.deb
- name: ls -la
run: |
ls -larthF
- name: .deb to Release
uses: softprops/action-gh-release@v2
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.0
0.6.2
2 changes: 1 addition & 1 deletion devdeb/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: uhelp
Version: 0.6.0
Version: 0.6.2
Section: doc
Priority: optional
Architecture: amd64
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = uhelp
version = 0.6.0
version = 0.6.2

description = uhelp(pip package) Your own Linux command help dictionary
long_description = file: README.md
Expand Down
28 changes: 14 additions & 14 deletions uhelp/uhelp.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ def getforminit(argtt):

console.print(f"\n \[basic dictionary] - total:{len(bas)}", ".", justify="right", style='usage', highlight=False)
elif whit == 3: # tldr mode
console.print(Panel.fit(bdoc, style='usage', title=adoc, title_align='left'))
console.print(Panel.fit(bdoc, style='usage', title=adoc, title_align='left'))
console.print(f"\n \[from tldr {resdict}]", ".", justify="right", style='usage', highlight=False)

else: # whit2 for sleepmemo
Expand Down Expand Up @@ -930,7 +930,7 @@ def getforminit(argtt):

elif whit == 3: # tldr mode
#ddoc = console.print(f"\n \[from tldr {resdict}]", ".", justify="right", style='title', highlight=False)
ddoc = f"\n \[from tldr {resdict}]"
ddoc = f"\[from tldr {resdict}]"


else: # whit2 for sleepmemo
Expand Down Expand Up @@ -1194,26 +1194,26 @@ def tldrexist():
resdict = 'common'
# helpdocument from filename
with open(TG_CPATH, 'r') as f:
rmd = f.read()
md = Markdown(rmd)
rmd = f.readlines()[2:]
md = Markdown("".join(rmd))
#console.print(md)
formsout(args.targetstrings[0],md,3)

elif TG_LPATH.exists():
resdict = 'linux'
# helpdocument from filename
with open(TG_LPATH, 'r') as f:
rmd = f.read()
md = Markdown(rmd)
rmd = f.readlines()[2:]
md = Markdown("".join(rmd))
#console.print(md)
formsout(args.targetstrings[0],md,3)

elif TG_APATH.exists():
resdict = 'android'
# helpdocument from filename
with open(TG_APATH, 'r') as f:
rmd = f.read()
md = Markdown(rmd)
rmd = f.readlines()[2:]
md = Markdown("".join(rmd))
#console.print(md)
formsout(args.targetstrings[0],md,3)

Expand Down Expand Up @@ -1294,26 +1294,26 @@ def tldrexist():
resdict = 'common'
# helpdocument from filename
with open(TG_CPATH, 'r') as f:
rmd = f.read()
md = Markdown(rmd)
rmd = f.readlines()[2:]
md = Markdown("".join(rmd))
#console.print(md)
formsout(args.targetstrings[0],md,3)

elif TG_LPATH.exists():
resdict = 'linux'
# helpdocument from filename
with open(TG_LPATH, 'r') as f:
rmd = f.read()
md = Markdown(rmd)
rmd = f.readlines()[2:]
md = Markdown("".join(rmd))
#console.print(md)
formsout(args.targetstrings[0],md,3)

elif TG_APATH.exists():
resdict = 'android'
# helpdocument from filename
with open(TG_APATH, 'r') as f:
rmd = f.read()
md = Markdown(rmd)
rmd = f.readlines()[2:]
md = Markdown("".join(rmd))
#console.print(md)
formsout(args.targetstrings[0],md,3)

Expand Down

0 comments on commit ba4bb00

Please sign in to comment.