Skip to content

PsalmReimu/novel-rs

 
 

Repository files navigation

cli

Build codecov docs.rs Crates.io Crates.io GitHub Downloads


A set of tools for downloading novels from the web, manipulating text, and generating EPUB

Platform

  • Windows
  • Linux
  • macOS

Installation

You can download the compiled file from release, or compile it yourself

# Download the source code from https://crates.io
cargo install novel-cli

# Or download the source code from GitHub
git clone https://github.com/novel-rs/cli
cargo build --release

If you compile it yourself, you need the following dependencies:

  • Clang
  • CMake
  • Python / Python3

If you are using Windows, you also need:

  • NASM

And requires Clang version below 16 on Windows(due to this)

The novel-cli build subcommand requires pandoc

The novel-cli real-cugan subcommand requires realcugan-ncnn-vulkan

Usage

You can run novel-cli help to view help information

Examples

  • The basic format of the command is:
novel-cli [OPTIONS] <COMMAND> [COMMAND-OPTIONS] [ARGUMENTS]
  • Download a novel from source in format
novel-cli download <bookid> --source <app-source> --format <output-format>
  • Search for a novel from source
novel-cli search --source <SOURCE> <KEYWORD>

Commands

  • download: Download novels from various sources.
  • search: Search for novels on various sources.
  • info: Print information about a novel on various sources.
  • read: Read novel from various sources.
  • bookshelf: Show saved favorite novels on various sources.
  • transform: Convert markdown files to pandoc style.
  • check: Check the format and content of pandoc style markdown files.
  • build: Build a novel from pandoc style markdown files or an mdBook folder.
  • zip: Compress an epub folder.
  • unzip: Decompress an epub file.
  • real-cugan: Run the realcugan-ncnn-vulkan program.
  • update: Check for updates, download files from GitHub, and replace them.
  • completions: Generate shell completions to standard output.
  • help: Print this message or the help of the given subcommand(s).

Options

  • -v, --verbose: Use verbose output. This option provides more detailed output.
  • -q, --quiet: Do not print logs (default: false). This option suppresses logging output.
  • -h, --help: Print help. This option displays the help information.
  • -V, --version: Print version. This option prints the version information.

Contributing

You should read CONTRIBUTING first

License

All the code in this repository is released under Apache License 2.0 and MIT license

About

菠萝包提取

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 93.9%
  • Fluent 5.9%
  • JavaScript 0.2%