Skip to content

Easily generate CodeGame event definitions for a variety of languages.

License

Notifications You must be signed in to change notification settings

code-game-project/cg-gen-events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cg-gen-events

CGE Version

Easily generate CodeGame event definitions for a variety of languages from CodeGame Events (CGE) files.

Installation

cg-gen-events should be used through codegame-cli:

codegame gen-events ...

Usage

Generate from a local file:

codegame gen-events my_game.cge

Generate from a remote file:

codegame gen-events https://example.com
# same as
codegame gen-events https://example.com/events

Specify an output directory:

codegame gen-events -o events/ my_game.cge

Specify a list of languages as command line arguments instead of the interactive menu:

codegame gen-events -l go,typescript my_game.cge

Use codegame gen-events --help for a complete list of available options.

Supported languages

  • C#
  • Go
  • Java
  • Markdown docs
  • TypeScript
  • JSON

Editor Support

Building

Prerequisites

  • Go 1.18+
git clone https://github.com/code-game-project/cg-gen-events
cd cg-gen-events
go build -o cg-gen-events ./cmd/cg-gen-events

License

Copyright (c) 2022-2023 Julian Hofmann

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

Easily generate CodeGame event definitions for a variety of languages.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages