- ๐ฑ Iโm currently learning Golang and Kafka
denizgursoy / gotouch Goto Github PK
View Code? Open in Web Editor NEWCustomizable Boilerplate Project Creator
Home Page: https://denizgursoy.github.io/gotouch
License: MIT License
Customizable Boilerplate Project Creator
Home Page: https://denizgursoy.github.io/gotouch
License: MIT License
I'd like to use gotouch
to bootstrap projects/single files in our organization but when working in an enterprise it's hardly the case that anything you're using is publicly available on the internet but rather e.g. in a protected storage like Azure DevOps artifacts.
A very simple solution would be to take the .netrc
file into consideration (just like the Go CLI itself also does), parse it ( for example with github.com/jdx/go-netrc ) and inject credentials when downloading files and a matching entry is present.
Alternatively it would be possible to configure the credentials in the properties YAML either plain text or with a credential file similar to what mount.cifs
is using
See also src/cmd/go/internal/auth/auth.go how Go itself is using .netrc
.
As soon as details are settled I could also provide you with a PR if you like.
When we run with giving a yaml file, it is always checking the ".yaml" suffix even in the URL.
It should be directly run and if not unmarshal we can return error as not a yaml format.
it should use https://github.com/go-survey/survey#multiselect
I'd like to use gotouch
not only to bootstrap complete projects but also to distribute common default files like:
currently gotouch
always creates a directory with the name of the module requiring the user to move the template file a level up and delete the created directory.
having different kinds of project types moves the control to the properties YAML author which sounds like from an author perspective and potentially annoying from a user perspective ๐
Same as already mentioned in the previous issue, as soon as the details are settled I'd be happy to provide you with a PR as well!
Gotouch should call a script file so that user can execute commands that they wish
Script file in linux should be init.sh
Script file in windows should be init.bat
version information should be stored with semver-clie
Create a web page with vuepress
should not create a project if folder exists
Integrate functions of https://github.com/Masterminds/sprig to templating
brew install gotouch should gotouch
Selected choice should be able to introduce some changeable values
We should investigate if we can replace cobra with the flag library. It will decrease the binary size
Describe the bug
Gotouch does not show the version
To Reproduce
Steps to reproduce the behavior:
Execute gotouch with --version flag, It will display gotouch version v0.0.0
Expected behavior
It should show the current version
Gotouch should delete files when a choice is selected or not selected
Add add docker file, build the image and push it to docker hub. Container from that image should accept -f argument. Gotouch should run inside the container and create the project to the mounted volume. Add how to initialise a container to Readme
if a choice only has value, no files and dependencies gotouch does not process the file
--version and -v boolean flags should show current version
git allows checking out from different branch, we should integrate that
git clone --branch
checkout with ssh [email protected]:finops/nextgen/templates/go-project.git
write a pipeline containing build and test stepe
there should be two separate test steps: one for unit , one for integration
pipeline:
build:
unit-test:
integration-test
Should show how to install
Should include gif showing every step
While for GitHub and GitLab the current detection mechanism works by checking whether the URL ends with.git
, it doesn't work for Azure DevOps because Microsoft doesn't follow the aforementioned convention there.
url
gotouch
will try to deflate the payload because it assumes that it's an archiveGits smart HTTP protocol could be used to send a simple GET request to the URL to check whether it's a Git repository or anything else. I'll create a PR showcasing how that would work
There should be a command to replace default properties URL. It can be something like gotouch command set default-yaml https://a.com/b.yaml
Hello. I am using WSL Arch linux, and after I installed the gotouch with go install github.com/denizgursoy/gotouch/cmd/gotouch@latest
command, when I try to execute the command the system can't find the program
go touch zsh: command not found: gotouch
Is your feature request related to a problem? Please describe.
When templating other Go template files (e.g. Helm templates) using the same delimiter can be annoying because you've to escape it every time like {{ "{{" }}
.
Describe the solution you'd like
It would be great to be able to change the delimiter e.g. per template in the YAML config.
Currently if there is one project structure in properties yaml, gotouch is skipping project structure selection, it leads to confusion.
When properties yaml is on the root folder, gotouch should delete it
when a new version of gotouch is installed, default path stored in the config must be set again. Configs are not persistent.
func validateProjectName(projectName string) error function should be replaced and cover the test cases and check util.GetBaseName function
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.