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 | เปิดบทความ Wikipedia เต็มรูปแบบในเบราว์เซอร์เริ่มต้น |
--browser browser | เปิดบทความ Wikipedia เต็มรูปแบบใน browser เฉพาะ |
-d | เปิดเมนู CLI disambiguation |
-D | เปิดหน้า disambiguation ในเบราว์เซอร์ |
--version -v | พิมพ์หมายเลขเวอร์ชันที่ติดตั้ง |
--name -n | พิมพ์ชื่อโปรแกรม: Wikit |
ผลลัพธ์จะเป็นวรรคของบทความ Wikipedia ก่อนที่สารบัญ ความยาวของเส้นถูกห่ออย่างประณีตตามขนาดหน้าต่างของเทอร์มินัลของคุณโดยมีอักขระสูงสุดประมาณ 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.
โปรดสร้างปัญหาที่นี่ ขอบคุณ!