Coder Social home page Coder Social logo

gmy's Introduction

This became the base of the official CLI. So,

Use the Official CLI instead.

GMY

Fast and simple command line tool to setup the needed files to quickly create Telegram bots powered by the grammY bot framework. This tool allows you to create projects from several templates, maintained by both official team and third-party users.

This is a Go re-write of the official grammY CLI.

504541-2

https://asciinema.org/a/504541

Install

Install using Go.

go install github.com/dcdunkan/gmy@latest

After installation, run gmy command to use the tool. You can provide a project name as the first argument.

Templates

Open a pull request by adding your own templates to the templates.json file. There are currently three platforms that you can add templates to: Deno, Node.js, and other templates.

Each template should contain the following fields:

  • name — Name to be shown in the templates list in CLI. Recommended to use "owner/repository" as the name if it's a repository.
  • typerepository or subfolder. If your template is an entire repository, use "repository" as type, or if it is a subfolder in a repository use "subfolder" as the type.
  • owner — GitHub repository owner.
  • repository — GitHub repository name.
  • docker_prompt — Should the CLI prompt the user to add default docker files.
  • tsconfig_prompt — Should the CLI prompt the user to add the default tsconfig.json file.

"repository" type

  • branch — Primary repository branch name.

"subfolder" type

  • path — Path to the subfolder the template is located at.

Deno templates

  • cache_file — When the user chose to Cache dependencies, deno cache command will get executed for the specified file.

GMY?

I chose it as a short form of grammY, for the command name.

gmy's People

Contributors

dcdunkan avatar

Stargazers

 avatar  avatar  avatar  avatar  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.