Code Monkey home page Code Monkey logo

initcli's Introduction

InitCLI

InitCLI is a command-line tool written in Go that allows you to easily initialize projects for various web and app frameworks.

Development Usage

go run main.go <framework> <project-name> [optional-args...]

Frameworks and Arguments

Framework Description Arguments
nextjs Initialize a Next.js project project-name, optional-args...
expo Initialize an Expo project project-name, optional-args...
react Initialize a React project project-name, optional-args...
vue Initialize a Vue.js project project-name, optional-args...
angular Initialize an Angular project project-name, optional-args...
reactnative Initialize a React Native project project-name, optional-args...
svelte Initialize a Svelte project project-name, optional-args...
solid Initialize a Solid project project-name, optional-args...
electron Initialize an Electron project project-name, optional-args...
nestjs Initialize a Nest.js project project-name, optional-args...
flutter Initialize a Flutter project project-name, optional-args...
vuepress Initialize a VuePress project project-name, optional-args...
gatsby Initialize a Gatsby project project-name, optional-args...
hugo Initialize a Hugo project project-name, optional-args...
nuxtjs Initialize a Nuxt.js project project-name, optional-args...
flutterweb Initialize a Flutter web project project-name, optional-args...

Example

Initialize a Next.js project named "my-next-app" with TypeScript:

initcli nextjs my-next-app --typescript

Initialize a React Native project named "my-react-native-app" with Expo:

initcli reactnative my-react-native-app --template blank

Contributions

Contributions are welcome! If you'd like to add support for initializing projects for a new framework, simply follow these steps:

  1. Navigate to the frameworks folder in the repository.
  2. Create a new Go file named after the framework you want to add support for (e.g., myframework.go).
  3. Add the initialization function for the new framework in the Go file. Here's an example of what it might look like:
package frameworks

import "github.com/your/command-package"

func InitMyFramework(projectName string, optionalArg string) error {
    return command.RunCommand("mycommand", "myarguments", projectName, optionalArg)
}

by cirlormx

initcli's People

Contributors

champ3oy avatar

Stargazers

Nana K. avatar

Watchers

 avatar

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.