Giter Club home page Giter Club logo

gosvc's People

Contributors

pererohit avatar

Watchers

 avatar  avatar

gosvc's Issues

generate files into a given path

New --dest optional flag that will allow file generation to the path given to this parameter.

Currently, files are generated into the service directory from where the gosvc command is executed.

generating tests before go mod tidy causes error

Defer creating the test files after mocks are generated as doing go mod tidy before causes go to find the repository for modules with URL type.

> gosvc --init github.com/PereRohit/Convert
errors obtained: error: go: finding module for package github.com/PereRohit/Convert/pkg/mock
github.com/PereRohit/Convert/internal/handler tested by
        github.com/PereRohit/Convert/internal/handler.test imports
        github.com/PereRohit/Convert/pkg/mock: cannot find module providing package github.com/PereRohit/Convert/pkg/mock: module github.com/PereRohit/Convert/pkg/mock: git ls-remote -q origin in .../go/pkg/mod/cache/vcs/0d4b536d7a46e79420c8d7f141beeb39c2191bd02e025976be23c3b30e8477bc: exit status 128:
        remote: Repository not found.
        fatal: repository 'https://github.com/PereRohit/Convert/' not found

remove dependency on mockgen executable

If mockgen is not installed on the users system, the process fails and the generated files are deleted. Maybe the user wants to use a different mocking framework or write their own mock code.

Let the generated files be as is and display a message for mocks not generated due to missing mockgen.

Can additionally add a flag --install-deps that can install dependencies like mockgen if not found.

gosvc on windows not working

Installation followed by init usage gives error

PS C:\Users\Perennial\go\src> gosvc -init "testserver"
read file error: open resources\README.md.tmpl: file does not exist
error: chdir C:\Users\Perennial\go\src\testserver: The system cannot find the file specified.

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.