From 3675da2acd06d46fe2d7604ba860b9d708ef3a55 Mon Sep 17 00:00:00 2001 From: "If you know this, you a cool guy" Date: Tue, 21 Jan 2025 22:06:54 +0000 Subject: [PATCH] Update README.md Fixed formatting. --- README.md | 86 +++++++++++++++++++++++++++---------------------------- 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/README.md b/README.md index 14bfe8f..fc91b8c 100644 --- a/README.md +++ b/README.md @@ -32,87 +32,87 @@ A unified command-line interface for managing packages across different Linux di 1. Clone the repository and enter the directory: - git clone https://git.supernets.org/e/managerofmanagers - cd upm + ```git clone https://git.supernets.org/e/managerofmanagers``` + ```cd upm``` 2. Install dependencies: - go mod download + ```go mod download``` 3. Build the binary: - go build -o upm + ```go build -o upm``` 4. (Optional) Install system-wide: - sudo mv upm /usr/local/bin/ + ```sudo mv upm /usr/local/bin/``` ## Usage ### Basic Commands -Install packages: - upm install nginx - upm install nginx@1.18.0 # Install specific version +Install packages:\ + ```upm install nginx```\ + ```upm install nginx@1.18.0 # Install specific version``` -Remove packages: - upm remove nginx +Remove packages:\ + ```upm remove nginx``` -Search for packages: - upm search nginx +Search for packages:\ + ```upm search nginx``` -Update package lists: - upm update +Update package lists:\ + ```upm update``` -Upgrade installed packages: - upm upgrade +Upgrade installed packages:\ + ```upm upgrade``` -List installed packages: - upm list +List installed packages:\ + ```upm list``` -Show package information: - upm info nginx +Show package information:\ + ```upm info nginx``` ### Repository Management -Add a repository: - upm repo add https://repo.example.com +Add a repository:\ + ```upm repo add https://repo.example.com``` -Remove a repository: - upm repo remove example-repo +Remove a repository:\ + ```upm repo remove example-repo``` -List repositories: - upm repo list +List repositories:\ + ```upm repo list``` ### Maintenance -Clean package cache: - upm clean +Clean package cache:\ + ```upm clean``` -Remove unused dependencies: - upm autoremove +Remove unused dependencies:\ + ```upm autoremove``` ### Dependency Management -Check dependencies: - upm check-deps +Check dependencies:\ + ```upm check-deps``` -Check dependencies for specific package: - upm check-deps nginx - -Show package dependencies: - upm show-deps nginx +Check dependencies for specific package:\ + ```upm check-deps nginx``` + +Show package dependencies:\ + ```upm show-deps nginx``` ### Using Universal Package Managers -Install using snap: - upm -u snap install firefox +Install using snap:\ + ```upm -u snap install firefox``` -Install using flatpak: - upm -u flatpak install org.mozilla.firefox +Install using flatpak:\ + ```upm -u flatpak install org.mozilla.firefox``` ## Project Structure - +``` upm/ ├── main.go # Main application entry point ├── pkg_manager/ @@ -120,7 +120,7 @@ upm/ ├── go.mod ├── go.sum └── README.md - +``` ## Dependencies Required Go packages: