-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: upsteams taskfiles from client, adds info on usage, adds exports/ #2
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Being picky with my comments, but also pretty excited to see this 😍
README.md
Outdated
|
||
The procedure to add it to a project is to do the following: | ||
|
||
1. Copy `exports/Taskfile.dist.yaml` to your project. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can add a full command here, e.g.:
curl -sL https://raw.githubusercontent.com/masterpointio/taskit/main/exports/Taskfile.dist.yaml -o Taskfile.dist.yaml
README.md
Outdated
The procedure to add it to a project is to do the following: | ||
|
||
1. Copy `exports/Taskfile.dist.yaml` to your project. | ||
2. Add the following lines to your project's `.gitignore`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about adding .gitignore
modifications to our task init
flow?
README.md
Outdated
|
||
3. Run `task init` to initialize taskit by downloading this repo into your remote repo. Note, `git` is a requirement. | ||
4. Run `task --list` to list all newly available tasks from taskit. | ||
5. (Optional) Add a `.env.taskit` file which can include overrides for any variables in taskit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably it's worth adding something like "After this, the setup process for taskit
is all wrapped up and you're now ready to push all the configuration files to the repository."
exports/Taskfile.dist.yaml
Outdated
- | | ||
if [ -d .taskit ]; then | ||
rm -rf .taskit/ | ||
fi | ||
mkdir -p .taskit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- | | |
if [ -d .taskit ]; then | |
rm -rf .taskit/ | |
fi | |
mkdir -p .taskit | |
- rm -rf .taskit/ | |
- mkdir -p .taskit |
To make things more compact. rm -rf
should not fail if the directory does not exist.
lib/aws/Taskfile.yaml
Outdated
- MESSAGE | ||
cmds: | ||
- | | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lib/aws/Taskfile.yaml
Outdated
tasks: | ||
validate-access: | ||
desc: Validate access to AWS for the given command | ||
# silent: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# silent: true | |
silent: true |
Should be silent?
lib/snaplet/Taskfile.yaml
Outdated
includes: | ||
aws: | ||
taskfile: ../aws/Taskfile.yaml | ||
aliases: [aws] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's equal to a task name. Is there a benefit I'm missing?
@gberenice that was a great PR review, be sure to do all your PR reviews like that from now on 💯 😁. I worked to address all your feedback. Let me know if you have any additional thoughts! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
be sure to do all your PR reviews like that from now on
@Gowiem haha, will try :)
Info
exports/Taskfile.dist.yaml
, which is our main file for sharing taskit aroundexports/Taskfile.dist.yaml