wikit
1.0.0
Программа командной строки для легко получения сводки Википедии.
Установка
Использование
Примеры
Флаги
Выход
Ошибки и предложения
Поддержка разработки - купи мне кофе
$ npm i wikit -g
Синтаксис: $ wikit <query> [-flags]
Цитаты не требуются для запросов из нескольких слов.
Чтобы изменить язык по умолчанию, редактировать ~/.config/configstore/wikit.json
.
$ wikit wikipedia
$ wikit empire state building
$ wikit linux -b
$ wikit jugo -l es --link -a
Флаг | Описание |
---|---|
--lang langCode -l langCode | Укажите язык; langCode - это языковой код HTML ISO |
--all -a | Распечатайте все разделы статьи (полная страница). Рекомендуется передать в читателя, например, less |
--line num | Установить длину обертки линии на num |
--link | Распечатайте ссылку на полную статью после резюме |
-b | Откройте полную статью в Википедии в браузере по умолчанию |
--browser browser | Открыть полную статью в Википедии в конкретном browser |
-d | Открытое меню CLI -дискологи |
-D | Открыть страницу неоднозначности в браузере |
--version -v | Печать установленного номера версии |
--name -n | Распечатайте название программы: Wikit |
Вывод станет параграфами статьи Википедии перед оглавлением. Длина линии аккуратно завернута в зависимости от размера окна вашего терминала, максимум около 80 символов. Например:
$ wikit arch linux Arch Linux (or Arch /ˈɑːrtʃ/) is a Linux distribution for computers based on x86-64 architectures. Arch Linux is composed predominantly of free and open-source software, and supports community involvement. The design approach of the development team follows the KISS principle ("keep it simple, stupid") as the general guideline, and focuses on elegance, code correctness, minimalism and simplicity, and expects the user to be willing to make some effort to understand the system's operation. A package manager written specifically for Arch Linux, pacman, is used to install, remove and update software packages. Arch Linux uses a rolling release model, such that a regular system update is all that is needed to obtain the latest Arch software; the installation images released by the Arch team are simply up-to-date snapshots of the main system components. Arch Linux has comprehensive documentation in the form of a community wiki, called the ArchWiki. The wiki is widely regarded among the Linux community and ecosystem for often having the most recent information on a specific topic and being applicable beyond Arch Linux.
Пожалуйста, создайте проблему здесь. Спасибо!