pudl

command module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

Pudl

Command line tool to help you stay on top of news on pudelek.pl (Polish gossip website)

Usage

  • pudl list - get list of hot topics
  • pudl top - get only top of the list (default 3)
  • pudl cache - get list of cached topics
  • pudl show ID - open browser with selected topic id.

Typical usage would look something like this:

12:37 kuba@> pudl list
⭐⭐⭐ 😹 Lista tematow z pudla 🐩 😹 ⭐⭐⭐
1: 17-letnia siostra Julii Wieniawy chwali się nową fryzurą. Ma CZERWONE włosy (FOTO)
2: Justyna Gradek ujawnia, ile kosztowały ją NOWE POŚLADKI, na których przez dwa tygodnie nie mogła siadać...
...
12:37 kuba@> pudl show 5

.pudl.yaml

Pudl is using a yaml file to store config and cache info. It is located in your home directory and named .pudl.yaml

Install

Build from source

You will need Go 1.16 at least.

  1. Clone repo
  2. make build
  3. add to PATH <pudl_repo_path>/bin

If you build it in /Users/kuba/pudl you would need to add to your .bashrc or .zshrc line

PATH="/Users/kuba/pudl/bin:$PATH"
Install from binary
  1. Download binary for your operating system and arch eg. osx amd64
  2. Untar it in a directory eg. /Users/<user_name>/pudl using tar -zxvf pudl.osx-amd64.tar.gz
  3. Add it to the path var (if you are using bash ir will be ~./bashrc) PATH="/Users/<user_name>/pudl:$PATH"

Documentation

Overview

Copyright © 2022 Jakub OBoza <[email protected]>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL