-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from maestro-framework/npm-packaging
Merge branch npm-packaging into master
- Loading branch information
Showing
45 changed files
with
1,219 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ __MACOSX | |
.env | ||
yarn.* | ||
*.log | ||
doc/man/*.1.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/usr/bin/env node | ||
|
||
const deploy = require("../src/commands/deploy"); | ||
const teardown = require("../src/commands/teardown"); | ||
const newProject = require("../src/commands/newProject"); | ||
const getTemplates = require("../src/commands/getTemplates"); | ||
const config = require("../src/commands/config"); | ||
const minimist = require("minimist"); | ||
const argv = minimist(process.argv.slice(2), { | ||
boolean: ["force", "n"], | ||
string: ["roles", "template"], | ||
alias: { | ||
f: "force", | ||
t: "template", | ||
}, | ||
default: { | ||
roles: "", | ||
}, | ||
}); | ||
|
||
switch(argv._[0]) { | ||
case "config": | ||
config(); | ||
break; | ||
case "deploy": | ||
deploy(); | ||
break; | ||
case "teardown": | ||
teardown(argv); | ||
break; | ||
case "new": | ||
newProject(argv); | ||
break; | ||
// TODO: perhaps `maestro get-templates` should be called as part of the `maestro config` command? If so, should we still leave `get-templates` as a top level sub-command? | ||
case "get-templates": | ||
getTemplates(); | ||
break; | ||
default: | ||
console.log( | ||
`See man pages for commands (i.e. maestro(1), maestro-deploy(1), maestro-teardown(1), etc.)` | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
cat <<'EOF' | ||
+--------------------------------------------------------------+ | ||
| Welcome to Maestro! | | ||
| Run `maestro config` to configure Maestro for first-time use.| | ||
| Or see the documentation for instructions for use. | | ||
| https://github.com/maestro-framework/maestro | | ||
| Happy coding! | | ||
+--------------------------------------------------------------+ | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
for file in "doc/man/*.1"; do | ||
gzip -f -k -n -9 $file | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
.TH MAESTRO-CONFIG 1 2020-08-08 "Maestro v1.0.0" | ||
|
||
.SH NAME | ||
|
||
.PP | ||
maestro-config \- set up or alter your Maestro configuration files | ||
|
||
.SH SYNOPSIS | ||
|
||
.PP | ||
.B maestro config | ||
|
||
.SH DESCRIPTION | ||
|
||
.SH BUGS | ||
|
||
.PP | ||
Since Maestro is in the prototypal phase, bug reports are welcome and can be submitted at | ||
.UR https://github.com/maestro-framework/maestro/issues | ||
the GitHub Issues page | ||
.UE . | ||
|
||
.SH EXAMPLE | ||
|
||
.SH SEE ALSO | ||
|
||
.PP | ||
.BR maestro (1), | ||
.BR maestro-help (1), | ||
.BR maestro-teardown (1), | ||
.BR maestro-deploy (1), | ||
.BR maestro-new (1), | ||
.BR maestro-get-templates (1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
.TH MAESTRO-DEPLOY 1 2020-08-08 "Maestro v1.0.0" | ||
|
||
.SH NAME | ||
|
||
maestro-deploy \- deploy a full AWS Step Functions workflow with AWS | ||
Lambdas | ||
|
||
.SH SYNOPSIS | ||
|
||
.PP | ||
.B maestro deploy | ||
|
||
.SH DESCRIPTION | ||
|
||
.SH OPTIONS | ||
|
||
.SH NOTES | ||
|
||
.SH BUGS | ||
|
||
.PP | ||
Since Maestro is in the prototypal phase, bug reports are welcome and can be submitted at | ||
.UR https://github.com/maestro-framework/maestro/issues | ||
the GitHub Issues page | ||
.UE . | ||
|
||
.SH EXAMPLE | ||
|
||
.SH SEE ALSO | ||
|
||
.BR maestro(1), | ||
.BR maestro-help (1), | ||
.BR maestro-config (1), | ||
.BR maestro-new (1), | ||
.BR maestro-get-templates (1), | ||
.BR maestro-teardown (1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
.TH MAESTRO-GET-TEMPLATES 1 2020-08-08 "Maestro v1.0.0" | ||
|
||
.SH NAME | ||
|
||
maestro-get-templates \- fetch and install the default maestro templates | ||
|
||
.SH SYNOPSIS | ||
|
||
.PP | ||
.B maestro get-templates | ||
|
||
.SH DESCRIPTION | ||
|
||
.PP | ||
Fetches the | ||
.UR https://github.com/maestro-framework/maestro-templates | ||
Maestro default templates | ||
.UE from git and installs them on the user's local machine. | ||
|
||
.PP | ||
If the templates are already installed, this simply notifies the user. | ||
|
||
.SH OPTIONS | ||
|
||
.SH FILES | ||
|
||
.PP | ||
Like | ||
.BR maestro (1), | ||
this uses the special maestro directory located at | ||
.BR ~/.maestro/ . | ||
The templates that | ||
.BR maestro-get-templates (1) | ||
installs are located in the | ||
.BR "~/.maestro/templates/ " directory. | ||
|
||
.SH NOTES | ||
|
||
.SH BUGS | ||
|
||
.PP | ||
Since Maestro is in the prototypal phase, bug reports are welcome and can be submitted at | ||
.UR https://github.com/maestro-framework/maestro/issues | ||
the GitHub Issues page | ||
.UE . | ||
|
||
.SH EXAMPLE | ||
|
||
.SH SEE ALSO | ||
|
||
.BR maestro (1), | ||
.BR maestro-help (1), | ||
.BR maestro-deploy (1), | ||
.BR maestro-new (1), | ||
.BR maestro-config (1), | ||
.BR maestro-teardown (1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
.TH MAESTRO-HELP 1 2020-08-08 "Maestro v1.0.0" | ||
|
||
.SH NAME | ||
|
||
maestro \- display help information about maestro or maestro command | ||
|
||
.SH SYNOPSIS | ||
|
||
.PP | ||
.B maestro help | ||
[\fIcommand\fR] | ||
|
||
.PP | ||
.B maestro | ||
[\fIcommand\fR] \fB\-h\fR|\fB\-\-help\fR | ||
|
||
.SH DESCRIPTION | ||
|
||
.SH OPTIONS | ||
|
||
.SH NOTES | ||
|
||
.SH BUGS | ||
|
||
.PP | ||
Since Maestro is in the prototypal phase, bug reports are welcome and can be submitted at | ||
.UR https://github.com/maestro-framework/maestro/issues | ||
the GitHub Issues page | ||
.UE . | ||
|
||
.SH EXAMPLE | ||
|
||
.SH SEE ALSO | ||
|
||
.BR maestro (1), | ||
.BR maestro-config (1), | ||
.BR maestro-deploy (1), | ||
.BR maestro-new (1), | ||
.BR maestro-get-templates (1), | ||
.BR maestro-teardown (1) |
Oops, something went wrong.