Coder Social home page Coder Social logo

saturncli's Introduction

๐Ÿ“ Table of Contents

๐Ÿง About

SaturnCLI is made to make using APT less annoying by providing an easy to use set of commands with syntax highlighting that never require you to ever have to type sudo or worry about case sensitivity!

๐Ÿ Getting Started

Getting started for contributing to SaturnCLI is very easy, you just need to follow the instructions below if you wish to build from source.

Prerequisites

In order to start building SaturnCLI, you are going to need to have rustup and cargo installed (Installing rustup automatically installs cargo so just worry about rustup). You can get rustup here.

Without APT (Linux) it's useless though so be sure to install what fits for your system!

Building

  • cd into the stn directory (You can easily do so by opening the terminal typing cd and dragging and dropping the stn folder into the terminal window and clicking the enter key).
  • Run cargo build --release in the terminal.
  • Make sure your in the stn directory and from there go into the target directory and then go into the release directory (stn --> target --> release).
  • You should see a executable file named stn.
  • Congratulations! You have successfully built SaturnCLI (stn)!

Installing

Linux and macOS

  • If you want to build from source click here. If you just want a precompiled binary click here
  • Navigate to /usr/local/bin/.
  • Drag the stn binary you got from compiling (or downloading) SaturnCLI in the window that just popped up.
  • Congratulations! You have successfully installed SaturnCLI (stn)! Without APT (Linux) it's useless though so be sure to install apt if you don't have it!
  • Whenever a new SaturnCLI update is out just rebuild or download the latest precompiled binary by clicking here, navigate to /usr/local/bin/ and replace the old stn binary with the new stn binary you just rebuilt.

Windows 10

  • If you want to build from source click here. If you just want a precompiled binary click here
  • Navigate to your C: directory (This should be your very last directory shown in the file explorer besides This PC) and create a new folder named bin.
  • Put the stn binary in the bin folder.
  • In the Type here to search box search Edit the system environment variables and open the control center program.
  • Click Envirnment Variables...
  • Under System variables (The bottom box with the list of variables) look for the variable named path and click on it then click Edit... (A window named Edit envirnment variable should pop up).
  • Click New and input C:\bin for the new entry. After you do that click OK for all the windows related to Edit envirnment variable.
  • In the Type here to search box search Registry Editor and open the Registry Editor app (If it asks if you want to allow the app to make changes to your device choose Yes).
  • Click the drop down arrow for HKEY_CURRENT_USER and select the folder named Console.
  • In the box where it says Name, Type, and Data look for the name VirtualTerminalLevel (Under Name of course). If you don't see VirtualTerminalLevel right click in the box, hover over New and click DWORD (32-bit) Value and give it the name VirtualTerminalLevel.
  • Right click on VirtualTerminalLevel and click Modify... (A window named Edit DWORD (32-bit) Value should pop up).
  • Make sure the Value name: is VirtualTerminalLevel, make sure the Value data: is 1, and make sure the Base has Hexadecimal selected. After all that information has been properly set click OK and exit the Registry Editor app (This registry option has to be set to 1 so ANSI mode is enabled by default so text coloring properly works with SaturnCLI, if you want to revert this back just set the Value data: to 0 but if you do choose to revert back coloring in SaturnCLI will break and the text will be hard to read because the escape sequences will be shown).
  • Congratulations! You have successfully installed SaturnCLI (stn)! Without WSL (The Linux subsystem for Windows) SaturnCLI will be useless so make sure you install WSL and make sure the Linux distribution you use with WSL has APT installed.
  • Whenever a new SaturnCLI update is out just rebuild or download the latest precompiled binary by clicking here, navigate to C:\bin and replace the old stn binary with the new stn binary you just rebuilt.

๐ŸŽˆ Usage

SaturnCLI commands:

  • stn search <query> - Searches for specified query
  • stn list [--flag(s)] <package(s)> - Lists specified packages
  • stn info [package(s)] - Display info on specified package(s)
  • stn install [package(s)] - Installs specified package(s)
  • stn reinstall [package(s)] - Reinstalls specified package(s)
  • stn remove [package(s)] - Removes specified package(s)
  • stn add-key <filepath> - Adds a key to the list of trusted keys
  • stn edit-sources - Opens the APT repo editor
  • stn add-repos [--flag(s)] <repo(s)> - Adds new repo(s)
  • stn add-source - Adds a new repository
  • stn autoremove - Removes unneeded packages (orphans)
  • stn update - Updates the repository lists
  • stn upgrade [package(s)] - Upgrades specified packages
  • stn full-upgrade <package(s)> - Upgrades the system (or package(s)) (Linux Only)
  • stn version - Show APT, DPKG, and SaturnCLI versions
  • stn clean - Clear the download cache
  • stn help <command> - Opens help menu for specified commands
  • stn about - View legal information and credits

โ›๏ธ Built Using

  • RustLang - The only used programming language.

โœ๏ธ Authors

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.