Skip to content

godruoyi/laravel-tips

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Tips Build Status

A small command program for laravel tips written in Rust. this repository is side project for learning Rust, if you are interested get some luck laravel tips in your terminal, try it 🍡🦤.

Principle

We load the all tips from LaravelDaily Tips and store them using SQLite or file, then we use termimad to display the tips in the terminal.

Features

  • Support file and SQLite engin
  • Search tips by keyword
  • Multi thread download tips
  • Beautiful display tips in terminal(powered by termimad)
  • How to release binary file for multi-platform?
  • Use SQLite FT5 support full-text search
  • Support PostgreSQL engin and vector search?

Installation with Raycast

We support Raycast Extension now 🎉🎉🎉

laravel-tips-raycast

Installation with source code

We have not released the binary file yet(coming soon), you need to build it from source code now.

You need to install Rust first.

git clone https://github.com/godruoyi/laravel-tips.git
cd laravel-tips
cargo build --release

# try it, -__- should sync first
./target/release/laraveltips sync

# ./target/release/laraveltips random
# ./target/release/laraveltips search api

# or move it to your bin path
cp ./target/release/laraveltips /usr/local/bin/laraveltips
laraveltips random

Basic Usage

Usage: laraveltips [-v] [-e <engin>] [--path <path>] [-o <output>] [-q] [<command>] [<args>]

A command line tool for laravel tips

Options:
  -v, --version     show version
  --path            specify the path to store tips, default is $HOME/.laravel
  -e, --engin       specify the search engine, default is SQLite, support [sqlite, file]
  -o, --output      specify the output format, default is display in terminal, support [text, json]
  -q, --quiet       quiet mode, only output the result
  --help            display usage information

Commands:
  random            random laravel tips
  sync              sync laravel tips from laravel docs
  search            search laravel tips by keyword

ScreenShot

laravel-tips

License

MIT License

About

🍡 Laravel tips in terminal

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages