Skip to content

Commit

Permalink
feat: add BSD platforms to OS_DIRECTORIES (#228)
Browse files Browse the repository at this point in the history
* feat: add BSD platforms to OS_DIRECTORIES

* test: add BSD platforms
  • Loading branch information
vitorhcl committed Jan 31, 2024
1 parent f5b1dd0 commit 6536569
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_tldr.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ def test_tldr_language(tldr_language, language, lang, expected, monkeypatch):
("win32", "windows"),
("darwin", "osx"),
("sunos", "sunos"),
("freebsd", "linux"),
("freebsd", "freebsd"),
("openbsd", "openbsd"),
("netbsd", "netbsd"),
("aix", "linux"),
])
def test_get_platform(platform, expected):
Expand Down
3 changes: 3 additions & 0 deletions tldr.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
OS_DIRECTORIES = {
"linux": "linux",
"darwin": "osx",
"freebsd": "freebsd",
"openbsd": "openbsd",
"netbsd": "netbsd",
"sunos": "sunos",
"win32": "windows"
}
Expand Down

0 comments on commit 6536569

Please sign in to comment.