Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
muletter
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Дмитрий Никулин
muletter
Commits
e82abd81
Commit
e82abd81
authored
Jan 24, 2017
by
kimi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add cli help and update dependencies
parent
8672c25b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
6 deletions
+63
-6
README.md
README.md
+3
-3
muletter-help.js
muletter-help.js
+55
-0
package.json
package.json
+5
-3
No files found.
README.md
View file @
e82abd81
...
...
@@ -29,7 +29,7 @@ Example of `config.yml`:
smtp_password: password
smtp_host: smtp.hostname.com
smtp_ssl: true
letter_from: letter
titl
e <username@hostname.com>
letter_from: letter
nam
e <username@hostname.com>
letter_subject: subject letter
...
...
@@ -63,8 +63,8 @@ Example of `list.txt`:
Usage: muletter [options] [command] [argument]
Commands
init Check config.yml list.txt body.txt attachments
test <email> Send
a letter test
to <email>
send Send the letter
test <email> Send
the letter
to <email>
send Send the letter
to list.txt
help [command] Output usage information of [command]
[...]
muletter-help.js
0 → 100644
View file @
e82abd81
'use strict'
;
const
description
=
require
(
'./package'
).
description
;
const
version
=
require
(
'./package'
).
version
;
module
.
exports
.
main
=
`
Usage: muletter [options] [command] [argument]
${
description
}
Commands
init Check config.yml list.txt body.txt attachments
test <email> Send the letter to <email>
send Send the letter to list.txt
help [command] Output usage information of [command]
Options
-h, --help Output usage information
-V, --version Output the version number
Required files
config.yml
body.(txt|html)
list.txt
Optional attachments
attachments/*.*
`
;
module
.
exports
.
init
=
`
Usage: muletter init
Check if all parameters are defined in config.yml, if body.(txt|html), list.txt exist and get all attachments
Example of config.yml
smtp_user: username
smtp_password: password
smtp_host: smtp.hostname.com
smtp_ssl: true
letter_from: letter name <username@hostname.com>
letter_subject: subject letter
`
;
module
.
exports
.
test
=
`
Usage: muletter test <email>
Send the letter to <email>
`
module
.
exports
.
send
=
`
Usage: muletter send
Send the letter test to list.txt
`
module
.
exports
.
version
=
version
;
package.json
View file @
e82abd81
...
...
@@ -30,10 +30,12 @@
"mulist"
:
"muletter.js"
},
"engines"
:
{
"node"
:
">= 4.0.0"
,
"npm"
:
">= 3.0.0"
"node"
:
">= 4.0.0"
},
"dependencies"
:
{
"
commander
"
:
"^2.9.0"
"
emailjs
"
:
"^1.0.8"
},
"devDependencies"
:
{
"
maildev
"
:
"^0.14.0"
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment