https://github.com/emylincon/dec
Create python or go development environment. dec create python app or dec create go app
https://github.com/emylincon/dec
dec go golang
Last synced: 5 months ago
JSON representation
Create python or go development environment. dec create python app or dec create go app
- Host: GitHub
- URL: https://github.com/emylincon/dec
- Owner: emylincon
- License: mit
- Created: 2022-01-31T19:17:34.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-17T16:32:07.000Z (over 3 years ago)
- Last Synced: 2026-01-14T23:42:17.708Z (5 months ago)
- Topics: dec, go, golang
- Language: Go
- Homepage:
- Size: 92.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# DEC (Development Environment Creator)
Create python or go development environment.
dec create python app or de create go app
## Contributing 
* application is designed using [cobra](https://www.linode.com/docs/guides/using-cobra/)
### Create new commands
* command
```
cobra add
```
* example
```
cobra add create
```
### create subcommands
* subcommand
```
cobra add -p 'mainCommand_name'
```
* example
```
cobra add deactivate -p 'pythonCmd'
```
## How to use
* create python app
```
dec python create --name emeka -e emeka@gmail.com -d /home/emeka/app
```
* create golang app
```
dec golang create --name emeka -e emeka@gmail.com -d /home/emeka/app
```
## Autocomplete
You now need to ensure that the `dec` completion script gets sourced in all your shell sessions.
### Bash
To do so in all your `bash` shell sessions.
```bash
echo 'source <(dec completion bash)' >>~/.bashrc
```
### Zsh
To do so in all your `zsh` shell sessions.
```zsh
echo 'source <(dec completion zsh)' >>~/.zshrc
```
### Fish
To do so in your current `fish` shell session.
```bash
dec completion fish | source
```
### Powershell
To do so in all your `powershell` shell sessions, add the following line to your `$PROFILE` file:
```powershell
dec completion powershell | Out-String | Invoke-Expression
```
This command will regenerate the auto-completion script on every `powerShell` start up. You can also add the generated script directly to your `$PROFILE` file.
To add the generated script to your `$PROFILE` file, run the following line in your `powershell` prompt:
```powershell
dec completion powershell >> $PROFILE
```
[Help: problem with completion?](https://github.com/kubernetes-sigs/kind/issues/522)