Skip to content

Latest commit

 

History

History
154 lines (112 loc) · 3.28 KB

DOCS.md

File metadata and controls

154 lines (112 loc) · 3.28 KB

Documentation

Installation:

To install the latest version via homebrew (MacOS only):

1. Install Homebrew
2. Run the following commands:
brew tap hazelops/ize
brew install ize

Now you can run ize from command shell by typing ize in console.

4. Update:

4.1 Uninstall previous version:

brew uninstall ize

4.2 Update version in brew repo: `

brew tap hazelops/ize

4.3 Install:

brew install ize

Installation via public apt repository URL (Ubuntu):

1. To add public apt repository run:
echo "deb [trusted=yes] https://apt.fury.io/hazelops/ /" | sudo tee /etc/apt/sources.list.d/fury.list
2. After this, you should update information. Run:
sudo apt-get update
3. To install the latest version of ize app, you should run:
sudo apt-get install ize 
4. If you wish to install certain version of the ize you should add version like this:
sudo apt-get install ize=<version>
6. To remove ize app - run this command:
sudo apt-get purge ize

Installation via Scoop (Windows only)

Prerequisites:

You must install Scoop (command-line installer for Windows). To install Scoop see the following manual

To install ize with Scoop:

  1. Install git with Scoop
scoop install git
  1. Add bucket with the ize source:
scoop bucket add ize https://github.com/hazelops/scoop-ize.git
  1. Install ize:
scoop install ize

Installation from source:

Prerequisites:

  • GO version should be 1.16+
  • GOPATH environment variable is set to ~/go

To install Ize from source download code or clone it from this repo. After this you should run:

go mod download
make install

Autocomplete:

You could use integrated option to add autocompletion to Ize commands (bash, fish, zsh, powershell). In this manual we will describe it only for zsh and bash.

To add autocompletion script, use the following manual:

1. ZSH:

If shell completion is not already enabled in your environment you will need to enable it. You should execute the following once:

echo "autoload -U compinit; compinit" >>  ~/.zshrc

To load completions for every new session, execute once:

1.1 macOS:
ize gen completion zsh > /usr/local/share/zsh/site-functions/_ize
1.2 Linux:

You will need root privileges.

sudo zsh

Input your root password and run:

ize gen completion zsh > "${fpath[1]}/_ize"

To take effect for this setup you should run source ~/.zshrc or simply restart shell.

2. Bash:

Autocompletion script depends on the bash-completion package.

If it is not installed already, you can install it via your OS’s package manager.

To load completions for every new session, you should execute once:

2.1 MacOS:
ize gen completion bash > /usr/local/etc/bash_completion.d/ize
2.2 Linux:

You will need root privileges.

sudo bash

Input your root password and run:

ize gen completion bash > /etc/bash_completion.d/ize

To take effect for this setup you should run source ~/.bashrc or simply restart shell.