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.
- 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.
-
Download the
relnotescript.git clone https://github.com/Sulaymon-Dev20/relnote.git
-
Make it executable:
chmod +x relnote
-
Move it to a directory in your PATH:
sudo bash install.sh
relnote [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.
- Basic usage with default settings:
relnote
- 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" - Specify API data URL and adjust warning timings:
relnote -f custom.html -u http://example.com/api -wa 3600000 -wd 30000
This project is licensed under the MIT License.
- Name: Nuriddin Bobonorov
- Email: sulaymon1w@gmail.com
- Website: portfolio
