Files
Nebula/README.md

64 lines
1.9 KiB
Markdown
Raw Normal View History

2026-07-04 20:10:03 +10:00
# Nebula <img src="icon/icon.svg" width = 24>
2026-06-19 16:46:09 +10:00
2026-07-04 20:10:03 +10:00
The package manager for the Comet programming language.
2026-07-10 12:03:52 +10:00
## Installation
Nebula can be installed using `pipx` with the following command:
> pipx install nebpkg
or from `pip`:
> pip3 install nebpkg
## Usage
Nebula has several subcommands. Type `neb --help` to see the help menu.
### Getting package index
> neb pull
### Installing a package
> neb install <package_name>
You can provide a version with an @ symbol:
> neb install io@0.1.0
### Uninstalling a package
> neb uninstall <package_name>
### Searching for packages
> neb search <query>
By default the command won't show packages you already have installed, you can include installed packages with the `--show-installed` option.
### Listing installed packages
> neb list
### Building a package
You can use Nebula to build your package you're developing in C. Run the following command from the root of your package, and ensure you have a `src` directory:
> neb build .
You can replace the `.` with a directory if you want to build a directory as a package.
2026-07-10 12:06:59 +10:00
## How do I make a package?
There are some templates that you can use created by the Comet group. There is a [tutorial](https://chookspace.com/Comet/Comet/wiki/External+Libs+-+Table+of+Contents.-) on the [Comet repo's wiki](https://chookspace.com/Comet/Comet/wiki) with documentation on creating external libraries.
2026-07-10 12:03:52 +10:00
## Getting a package on Nebula
First, create a repository with your package. Once you've done that, submit a pull request with a commit editting the `package_index.json` file in the Nebula repository. Add the following the the index:
```json
...
"your_package_name": {
"repository": "https://chookspace.com/owner of the package/your package name",
"description": "description here",
"gitAuthor": "owner of the package"
}
}
```
Your package will be checked and if all is well, added to the Nebula index!