Skip to content

Sulaymon-Dev20/relnote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Relnote command logo

RELNOTE

Build Status Version Github Downloads

The relnote command helps create notifications about release dates by injecting a JavaScript file into an HTML file and configuring notification settings. It allows you to dynamically set variables and manage notification timings through command-line options.

Features

  • Injects JavaScript: Embeds a specified JavaScript file into an HTML file.
  • Configurable Variables: Sets apiData, deployDate, and timing settings for notifications.
  • API and Deploy Options: Supports both API data URLs and specific release dates.
  • Customizable Timing: Allows customization of warning activation and dismissal times.

Installation

  1. Download the relnote script.

    git clone https://github.com/Sulaymon-Dev20/relnote.git 
  2. Make it executable:

    chmod +x relnote
  3. Move it to a directory in your PATH:

    sudo bash install.sh

Usage

HOW TO USE RELNOTE

   relnote [OPTIONS]

Options

  • -f, --file <html_path> Specify the HTML file path (default is index.html).

  • -j, --js <js_path> Specify the JavaScript file path (default is /usr/share/relnote/note.js).

  • -u, --url Specify the URL for API data.

  • -d, --deploy <date_time> Specify the deploy time in the format 'Sun Aug 25 12:03:19 CDT 2024'.

  • -wa, --warning-activation Set the warning activation time in milliseconds (default is 86400000).

  • -wd, --warning-dismissal Set the warning dismissal time in milliseconds (default is 60000).

  • -h, --help Display this help message.

Examples

  1. Basic usage with default settings:
    relnote
  2. Inject note.js into a custom HTML file and set a release date:
    relnote -f myfile.html -j /path/to/note.js -d "Sun Sep 15 10:00:00 CDT 2024"
  3. Specify API data URL and adjust warning timings:
    relnote -f custom.html -u http://example.com/api -wa 3600000 -wd 30000

License

This project is licensed under the MIT License.

Author

About

The relnote command helps create notifications about release dates by injecting a JavaScript file into an HTML file and configuring notification settings. It allows you to dynamically set variables and manage notification timings through command-line options.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors