Skip to content

feat: add BSD platforms to OS_DIRECTORIES #228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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