The goal of this project is to provide a cli to hasten my dev process and to create interface for the tools I use.
Eclipse che is my main env that allow me to dev in my personal time (and i love it). This project is born from this issue that follow my thinking process of loving project with source openly available.
There is also a redhat release of che that is called DevSpace.
Inside of this module there will be multiple categories of commands that will be available, like:
dev_cli code
- Commands that are related to vscode manipulation (Open che workspace in vscode desktop)dev_cli workspace
- Commands that are related to workspace manipulation (Info/Get/List/Start/Stop/...)dev_cli shell
- Commands that are related to shell manipulation (ItShell/ExecShell/...)dev_cli completion
- Commands that are related to completion manipulation (Bash/Zsh/...)
dev_cli code open
- Open the current workspace in vscode desktopdev_cli code check
- Check if the needed vscode extension are installed and install them if needed
dev_cli workspace get
- Output workspace info, and if run directly in a workspace, output the current workspace info, either ask the user to choose a workspace (output could be json or yaml)dev_cli workspace get_container
- Get a workspace's container by name, by default the current if in onedev_cli workspace list
- List all the workspacesdev_cli workspace start
- Start a workspace by namedev_cli workspace stop
- Stop a workspace by namedev_cli workspace restart
- Restart a workspace by namedev_cli workspace restart_from_local
- Restart from local devfile
dev_cli shell
- Start an interactive shell in the current workspace
dev_cli completion -s $TERMINAL_KIND
- Output $TERMINAL_KIND completion script
Based on the Rust NX template.
nx generate @monodon/rust:library my-rust-lib # Create lib
nx generate @monodon/rust:binary my-rust-app # Create app
Please do cog install-hook --all
before your first commit, the hooks include a pre commit that will check for any secret and possible clippy error.
This repo has two CICD:
- Build and Release that will create a release draft on each Tag
- Clippy that will check for possible improvement
NO TAG SHOULD BE MANUALY MADE !!
To make a tag use :
cog bump [ --patch | --minor | --major ]
Doing it with the cli will:
- Increment the past version depending on the choice made (path/minor/major)
- Change the version in Cargo.toml
- Generate the changelog
- Trigger the pipeline that will create a draft with possible package
- Go to the Github release page
- Select the release to undraft
- Give it a name like
0.2.2 - Dalek
and a descrption to your need - Publish the release and enjoy !!