Thanks to visit codestin.com
Credit goes to github.com

Skip to content

8LWXpg/gpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPM

So you want to make your own package manager?

For something that feels like overkill to create standalone package manager, but is just too lazy to manually check for updates and download.

Installation

cargo install --git https://github.com/8LWXpg/gpm.git

Quick Start

Initialize the package manager

gpm init

Add a new package type

gpm type add <NAME> <EXT>

Change your shell config at ~/.gpm/types.toml.

Note

EXT is the file extension of the script file.

Edit the script

Script file is created at ~/.gpm/scripts/<NAME>.<EXT>, see here for more information.

Add a new repository

gpm add <NAME> 

For more information see here.

Important

Package name must be the same as resulted file/folder name to work properly.

Add a package to the repository

gpm repo <NAME> add <NAME> <TYPE> [ARGS]...

Important

Package name must be the same as file/folder name in order to work properly.

Make an alias for the repo

alias <NAME>='gpm repo <NAME>'

Documentation

Windows

There's no standard way to pass arguments to executables in Windows, each executable has its own parsing logic. So, if you have issues with passing arguments to certain executables, please add a fix to the escape_win.rs file.

About

A fully customizable general purpose package manager

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages