Skip to content
프로젝트

소개

A fast, futuristic package manager for Windows.

개발 도구

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
+1
in 7 days
+1
in 15 days
+1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Electric

A futuristic, powerful and fast package manager for Windows.

Installing 7-Zip Through Electric

Highly optimized for speed and usability, Electric is anywhere from 200% to 1500% faster than other market competitors for downloading Applications and Packages, and has incredible speeds for concurrent / parallel downloading.

Electric believes in incredible efficiency, and is the only Windows package manager that officially supports installing packages concurrently.

Built for today's systems and with good support for lower specced systems, Electric runs smoothly even on systems with as little as 2 GB of ram!

Note: Since electric is in an alpha phase, it might not be completely stable yet. Feel free to open any issues or bug reports at issues.

:zap: Installation

First you'll need to set your execution policy to RemoteSigned if not done so:

Set-ExecutionPolicy RemoteSigned

Method 1: Install Using Official Installer

Download the latest version of the electric Installer from the Releases Page

After completing the download, run the installer and follow the simple installation prompts.

Open your Command Prompt (cmd.exe) or alternatively Powershell (powershell.exe) and type electric to get a list of help commands.

Method 2: Install Using Powershell

Run the following command on your powershell window:

iwr -useb get.electric.sh | iex

Method 3: Build From Source

Prerequisites: Git, Python 3.x

  1. Clone the github repository using the Github CLI.
git clone https://www.github.com/electric-package-manager/electric
  1. Change to the electric directory.
cd electric
  1. Install it locally using the Python package manager (pip)
pip install --editable .
  1. Register Tab Completion

  2. Type electric to get a help menu of commands.


:test_tube: Testing

First, make sure you Build From Source.

Run this command to run the tests for electric

python -m unittest discover src/tests

:clap: Supporters


:hammer: Build Status

Feature Build Status
Installation ✅
Portable Installation ✅
Uninstallation ✅
Update ✅
Show ✅
List ✅
Search ✅
Code Editor Extension Installation ✅
Python Package Installation ✅
NodeJS Package Installation ✅
Configuration Management ✅
Cleanup ✅
Tab Completion ✅

Tab Completion

When using the official Electric installer, tab completion is setup for you out of the box, however, it is possible to manually add tab completion for electric. Add the below lines to your powershell profile:

Register-ArgumentCompleter -Native -CommandName electric -ScriptBlock {
    param($wordToComplete, $commandAst, $cursorPosition)
    [Console]::InputEncoding = [Console]::OutputEncoding = $OutputEncoding = [System.Text.Utf8Encoding]::new()
    $Local:word = $wordToComplete.Replace('"', '""')
    $Local:ast = $commandAst.ToString().Replace('"', '""')
    electric complete --word="$Local:word" --commandline "$Local:ast" --position $cursorPosition | ForEach-Object {
        [System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_)
    }
}

Then, restart your powershell and you've setup tab completion!

Authors

Tejas - Founder And Developer Of Electric

See also the list of contributors who participated in this project.

Special thanks to: @ZaphodElevated who built the terminal animation you saw above.

Built With

Python 3

Click

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

License

This project is licensed under the Apache 2.0 License - see the LICENSE.md file for details.

관련 프로젝트 살펴보기

불러오는 중…