Git Product home page Git Product logo

gotouch's Introduction

Hi there ๐Ÿ‘‹

  • ๐ŸŒฑ Iโ€™m currently learning Golang and Kafka

gotouch's People

Contributors

denizgursoy avatar jiin-yang avatar prskr avatar rytsh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gotouch's Issues

feat: gotouch should support auth scenarios for downloading files

Use case

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.

Possible solution

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.

Alternative solution

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

Additional context

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.

feat: gotouch should be able to create files in the current directory

Use case

I'd like to use gotouch not only to bootstrap complete projects but also to distribute common default files like:

  • .gitignore
  • .editorconfig
  • ...

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.

Possible solutions

  • introduce a flag to create files in specified directory instead of creating a new one
  • introduce some kind of 'project type' and differentiate between:
    • module template
    • file template

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!

bug: gotouch does not show the version

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

Add Docker file

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

Pipeline setup

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

Write Readme

Should show how to install
Should include gif showing every step

bug: gotouch does not detect Git repositories for Azure DevOps

Description

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.

Reproduction

  1. Create an Azure DevOps repository
  2. Copy the HTTP clone URL
  3. Paste it as url
  4. gotouch will try to deflate the payload because it assumes that it's an archive

Possible solution

Gits 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

Can't execute gotouch after installed

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

feat: gotouch should

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.