dnaka91 / cargo-hatch Goto Github PK
View Code? Open in Web Editor NEWHatch new projects like a chick coming out of its egg
License: GNU Affero General Public License v3.0
Hatch new projects like a chick coming out of its egg
License: GNU Affero General Public License v3.0
Just so that I'm not as confused when I run cargo hatch init
next time and expect it to do something
add a condition similarly to the file ignores to arguments to allow only querying some options when an earlier prompt was answered with yes.
[bin_install]
type = "bool"
description = "Enable binary installer (requires releases on GitHub)"
default = true
[github_repo]
type = "string"
description = "Enable binary installer (requires releases on GitHub)"
condition = "{{ bin_install }}"
should only ask for github_repo
if bin_install
is answered with yes.
Took me longer than I'm willing to admit, finding it in examples
I just created the project in my parent directory by accident.
I think there is a reason many tools only allow using an existing directory if it is empty.
Maybe a compromise could be to either ask "Are you sure you want to hatch in this non empty directory direcotry_name
?" or require passing the current directory as .
.
I hope I don't anoy you too much with these issues. It's a great tool, and I really enjoy using it.
I have a variable that is the project_name by default, but can be changed.
I'd like to be able to do something like:
default = "{{project_name}}"
Maybe I will look into implementing this myself
We discussed this earlier, but I have a few ideas that should make this viable:
from
from either a tag e.g. "0.1" or from a commit sha 0c4a3
.from
versionforce-clean
: Delete all files that were created by from
versiontry-clean
: Check if any files created by from
version were changed, if yes fail.partial-clean
: Only delete all the files that were not changedforce-gen
: Replace existing files with newly generated onestry-gen
: Fail if any files would be overwrittenpartial-gen
: Only generate files that would not overwrite existing ones.force
, try
, partial
With a vc project you can just use force
and than have a look at the diff.
Not sure if this is something that should be done in tera, but we could also just add these our selves.
Specifically, I'd like a file_name
filter to get the name of the path in project_name
Also, the name project_name
is a bit confusing as it actually just is the relative/absolute path, that often ends up just being a dir name.
My Idea would be to have it run with the context of already specified arguments (Hopefully we find a good way to do this in #8).
Same behavior as with defaults (using json for encoding of list and multi_list).
My usecase:
First question selects a set of features.
Second question selects one of them as default: should only offer the ones selected in question 1.
I created a base template containing some boilerplate for my github workflow files.
I'd like to use it for generating, but exclude it from the output.
https://tera.netlify.app/docs/#base-template
I cannot add it to .hatchignore
because then it will not be present for the template generation.
I have a file using terra like templates inside a template.
So having the ability to change the delimter to some other character would be great.
Related tera issue: Keats/tera#343
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.