From 8e63dd52ca28452273d9aa5fd7ac5cee322a63af Mon Sep 17 00:00:00 2001 From: Vitor Henrique Date: Tue, 30 Jan 2024 14:38:35 -0300 Subject: [PATCH 1/2] feat: add BSD platforms to OS_DIRECTORIES --- tldr.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tldr.py b/tldr.py index fb2682d..869b6eb 100755 --- a/tldr.py +++ b/tldr.py @@ -43,6 +43,9 @@ OS_DIRECTORIES = { "linux": "linux", "darwin": "osx", + "freebsd": "freebsd", + "openbsd": "openbsd", + "netbsd": "netbsd", "sunos": "sunos", "win32": "windows" } From b7f43f9851fcd59b88602f9c998654974ca9feb4 Mon Sep 17 00:00:00 2001 From: Vitor Henrique Date: Tue, 30 Jan 2024 20:21:22 -0300 Subject: [PATCH 2/2] test: add BSD platforms --- tests/test_tldr.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_tldr.py b/tests/test_tldr.py index b49c3ed..3826e68 100644 --- a/tests/test_tldr.py +++ b/tests/test_tldr.py @@ -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):