go-KodeStarter
Go to file
bcharest 3f690f48ac add .gitignore 2023-06-30 15:33:30 -04:00
cmdCreate plusieurs changements 2023-06-30 15:25:39 -04:00
cmdEnv plusieurs changements 2023-06-30 15:25:39 -04:00
cmdLists plusieurs changements 2023-06-30 15:25:39 -04:00
config plusieurs changements 2023-06-30 15:25:39 -04:00
configFile plusieurs changements 2023-06-30 15:25:39 -04:00
release/linux plusieurs changements 2023-06-30 15:25:39 -04:00
structures first commit 2023-06-12 22:40:22 -04:00
utils plusieurs changements 2023-06-30 15:25:39 -04:00
version plusieurs changements 2023-06-30 15:25:39 -04:00
.gitignore add .gitignore 2023-06-30 15:33:30 -04:00
Taskfile.yml plusieurs changements 2023-06-30 15:25:39 -04:00
config.yml add yml file config 2023-06-24 02:00:53 -04:00
go.mod plusieurs changements 2023-06-30 15:25:39 -04:00
go.mod__old plusieurs changements 2023-06-30 15:25:39 -04:00
go.sum plusieurs changements 2023-06-30 15:25:39 -04:00
kode-creator.go plusieurs changements 2023-06-30 15:25:39 -04:00
readme.md plusieurs changements 2023-06-30 15:25:39 -04:00
readme.template first commit 2023-06-12 22:40:22 -04:00

readme.md

Project Creator

This is a simple CLI app to help you to do smalls things like :

  • Look organizations and projects on Github and Gitea.
  • Create a startup project structure base on a configuration file
  • Create and push your projects into Github or Gitea.
  • Look and manange environnement variable

Description

The Kode-Creator app allows you to:

  • Create a Github project (repo)
  • Initialize a Git repository
  • Create an initial commit
  • Generate a README.md file

It uses the Github API to create projects.

Usage

To build and run the app:

go build
./kode-creator.exe 

This will show the help menu. The main commands are:

  • create - Create a Github project
  • list - List Github orgs and repos

To create a project:

./kode-creator.exe create -t <github_token> -o <org_name> -n <project_name> -d <description> -p <private|false>

For example:

./kode-creator.exe create -t abc123 -o myorg -n myproject -d "A test project" -p false

This will:

  • Create a public Github repo named myproject in the myorg org
  • Create a directory named myproject
  • Initialize a Git repo
  • Make an initial commit
  • Generate a README.md

To list Github orgs and repos:

./kode-creator.exe list -t <github_token> -o <org_name>  

For example:

./kode-creator.exe list -t abc123 -o myorg

This will list the repos in the myorg organization.

Environment Variables

You can set the following environment variables:

  • GITHUB_TOKEN - Your Github personal access token. This will be used instead of passing the -t flag.
  • GITEA_TOKEN - Your Gitea personnal access token. This will be used instead of passing the -t flag. Temporaire (Gitea Token for linux)[ af65e1b846d721e3465422c04997d69b0cfe7f18 ] (Github Token from Github)[ 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 ]

TODO

  • add fonctionnalities to .bachrc file
    • show .bashrc file
    • add export variables configure in your yaml config

##License

MIT License.