Skip to content

works on macos. a tool written with node.js that allows you send email via terminal.

Notifications You must be signed in to change notification settings

KMarkDH/lazydailyreport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lazydailyreport

Since I am too lazy to write a email everyday to my boss.

I made a little tool to simplify the job.

installing

This tool only works on macOS.

Run commands blow:

brew node

npm install commander

npm install nodemailer

npm install nodemailer-smtp-transport

npm install sqlite3

npm install -g pkg

Then open archive.js and fill in you information.

After you can build lbl.js with command like this:

pkg -t macos lbl.js

Then you will get a executable file named lbl.

Copy lbl to /usr/local/bin and run command:

sudo chmod a+x /usr/local/bin/lbl

Enter your_path/node_modules/sqlite3/lib/binding.you will see an auto-generated folder(s),in my case is node-v64-darwin-x64.Inside it you can find a node_sqlite3.node file,copy it to somewhere you put you library.LBL NEED THIS FILE AND ITS PATH

Open your_path/node_modules/sqlite3/lib/sqlite3.js, chage var binding_path = binary.find(path.resolve(path.join(__dirname,'../package.json'))); to binding_path = path_where_you_put___node_sqlite3.node.

If you're using mac.Just do what i do.Copy node_sqlite3.node to /usr/local/lib and set binding_path to /usr/local/lib/node_sqlite3.node;

Open terminal and enter:

lbl -h

If everything is ok,you will see something like this:

Usage: lbl [options]

Options:

  -V, --version            output the version number
  -m, --message [message]  填写今日完成的工作 (default: )
  -p, --plan [plan]        填写明日计划完成的工作 (default: )
  -s, --send               发送日(周)报
  -l, --list               预览日(周)报
  -i, --info               显示信息
  -f, --fetch              从git获取commit并填写到今日完成工作中
  -h, --help               output usage information

Usage

  lbl -V, --version            output the version number
  lbl -m, --message [message]  write what has done.
  lbl -p, --plan [plan]        assigned a job to todo-list.
  lbl -s, --send               send it by email
  lbl -l, --list               show done list and todo list
  lbl -i, --info               show infomation
  lbl -f, --fetch              fetch commit jobs using git
  lbl -h, --help               output usage information

Finally

Thanks Andris Reinman for nodemailer.

Thanks TJ Holowaychuk for commander.

I could not done this without their talented jobs.

About

works on macos. a tool written with node.js that allows you send email via terminal.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published