https://github.com/marsdevx/mycode
π π Terminal tool to manage, group, and launch projects with GitHub integration.
https://github.com/marsdevx/mycode
bash cli cli-app config config-file cross-platform github-api github-rest-api github-rest-v3 linux macos project-management project-management-tool project-manager project-organizer python python3 zsh zshrc zshrc-configs
Last synced: 15 days ago
JSON representation
π π Terminal tool to manage, group, and launch projects with GitHub integration.
- Host: GitHub
- URL: https://github.com/marsdevx/mycode
- Owner: marsdevx
- License: mit
- Created: 2025-05-20T21:20:01.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2025-06-03T19:00:06.000Z (22 days ago)
- Last Synced: 2025-06-04T01:12:34.331Z (22 days ago)
- Topics: bash, cli, cli-app, config, config-file, cross-platform, github-api, github-rest-api, github-rest-v3, linux, macos, project-management, project-management-tool, project-manager, project-organizer, python, python3, zsh, zshrc, zshrc-configs
- Language: Python
- Homepage:
- Size: 4.16 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
[](https://github.com/marsdevx/mycode/commits/main "Last Commit")
[](https://github.com/marsdevx/mycode "Platforms")
[](https://github.com/marsdevx/mycode "Languages")
[](https://docs.github.com/en/rest "GitHub API")
[](https://github.com/marsdevx/mycode "Shell Support")
[](https://github.com/marsdevx/mycode/blob/main/LICENSE "License")---
# π MyCode
**Mycode** is a **terminal**-based, **cross-platform** application built with **Python**, designed to help developers efficiently **manage** and **organize** their work projects on **macOS** and **Linux**. With a customizable mycoderc config file, this tool brings **clarity**, **automation**, and **speed** to your **development workflow**.
* Organize your **projects** by **groups** using a simple, readable **config file**.
* Instantly view what **projects** youβve worked on recently and in what order.
* Open any project in **Visual Studio Code** directly from the **terminal**βwith optional **terminal auto-close**.
* Store your **GitHub credentials** locally and securely in a **.json** file for quick reuse.
* Create **new projects** with a single command:
- Instantly create a private **GitHub** repo,
- **Clone** it to a local folder,
- Add **default** **README** and **.gitignore**,Take control of your dev life with this smart and simple CLI utility that works seamlessly across macOS and Linux!
---
## πΌοΈ Preview
![]()
![]()
---
## π οΈ Installation
To install this project, Launch the Terminal app on your system, and run the commands below.
- If a pop-up appears prompting you to download the Xcode Command Line Tools after the first command, click βDownloadβ and then run the first command again.1. **Install mycode**
```bash
brew tap marsdevx/mycode
brew install mycode
```2. **Set up mycoderc file**
> After the first launch of the program, a default configuration file will be created at: `~/.config/mycode/mycoderc`
```bash
πΎ Configuration File Rules:
- `--add `: Adds all subfolders in the specified path to global projects.
- `--addspecific `: Adds only the specified folder to global projects.
- `--remove --from `: Excludes a specific subfolder from a parent path.π Grouping Projects:
Groups can be defined using `[group:group_name]` syntax in the configuration file.
- Group-specific rules:
- `--add `: Adds subfolders to the group only.
- `--addspecific `: Adds only the specified folder to the group.
- `--remove --from `: Excludes a specific subfolder in the group.
- Example:
[group:example_group]
{
--add ~/example/path
--addspecific ~/example/specific_project
--remove ~/example/path/excluded_folder --from ~/example/path
}
```3. **Set up Shell Autocompletion**
> Make sure to add the following to your shell config (e.g. ~/.zshrc or ~/.bashrc):
```bash
autoload -Uz compinit bashcompinit
compinit
bashcompiniteval "$(register-python-argcomplete mycode)"
_mycode() {
if (( CURRENT > 2 )) &&
[[ ${words[CURRENT-2]} == --create || ${words[CURRENT-2]} == -c ]]; then
_files
return
fiif (( CURRENT > 1 )) &&
[[ ${words[CURRENT-1]} == --create || ${words[CURRENT-1]} == -c ]]; then
return
fi_python_argcomplete "$@"
}compdef _mycode mycode
```> Then run:
```bash
source ~/.zshrc
or
source ~/.bashrc
```---
## π Usage
- `mycode -s all`
Show all global projects defined in your config.- `mycode -s groups`
Show all available groups and the projects within them.- `mycode -s `
Show all projects in the specified group.- `mycode `
Open the specified project in **Visual Studio Code** and automatically close the terminal.- `mycode -n`
Open the specified project in **VS Code**, but **do not close the terminal**.- `mycode -c `
Create a new local project folder and a **private GitHub repository**, generate default files, and push it to GitHub β all in one command.---
## π License
All the code contained in this repo is licensed under the [MIT License](LICENSE)
```
MIT LicenseCopyright (c) 2025 marsdevx
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```---
## β Support
If you like this project, donβt forget to β **star** it and **follow** me!
Your **support** helps me create more projects. ππ **Explore more of my work on [GitHub](https://github.com/marsdevx?tab=repositories) and discover other exciting projects!**