Skip to content

Commit

Permalink
Merge pull request #1 from Julien-R44/feat/table-local-db
Browse files Browse the repository at this point in the history
Replaced hosts list by table + file database logic for tracking last connection date and connections count
  • Loading branch information
Julien-R44 authored Nov 17, 2021
2 parents 7f60ba6 + c00a48f commit 81167d3
Show file tree
Hide file tree
Showing 12 changed files with 421 additions and 97 deletions.
202 changes: 198 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ crossterm = "0.22.1"
ssh_cfg = "0.1"
futures = "0.3"
tokio = { version = "1", features = ["full"] }
rustbreak = { version = "2.0.0", features = ["ron_enc"] }
dirs = "4.0.0"
serde = "1.0.130"
chrono = "0.4.19"
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<b>Connect quickly to your services 🚀</b>
<br/>
<br/>
<!-- <a href="https://github.com/Julien-R44/fast-ssh/actions/workflows/rust.yml">
<img src="https://github.com/Julien-R44/fast-ssh/actions/workflows/rust.yml/badge.svg?branch=main" />
</a> -->
<a href="https://github.com/Julien-R44/cli-candlestick-chart/actions/workflows/release.yml">
<img src="https://github.com/Julien-R44/cli-candlestick-chart/actions/workflows/release.yml/badge.svg" />
</a>
<a href="https://crates.io/crates/fast-ssh">
<img src="https://img.shields.io/crates/v/fast-ssh.svg" />
</a>
Expand All @@ -19,16 +19,23 @@
<br/>
</div>

![](https://i.imgur.com/CwHDIiR.png)
![](https://i.imgur.com/pVf2hES.png)

# Documentation
If you already have an SSH configuration file you don't have to add anything, Fast-SSH just parses this file and displays it.

Fast-SSH has a group system. This allows you to sort your servers, for example, by project, mission or client.
To make groups, it's simple, just define your `Host` as `Group/ServerName` ( see full configuration in above picture ). Now your groups will be displayed in FastSSH. You can now select a group and display only the servers defined in that group.
To make some groups, it's simple, just define your `Host` as `Group/ServerName` ( see full configuration in above picture ) and your groups will be displayed in FastSSH. You can now select a group and display only the servers defined in that group.

Now all you have to do is launch Fast-SSH, select your service and press enter to connect.

# Usage
Download the latest release for your platform [here](https://github.com/Julien-R44/cli-candlestick-chart/releases) and put in directory in your PATH.
Then you can launch Fast-SSH with `fast-ssh`.
## File Database
A file database is stored at ~/.fastssh/db.ron. This file is automatically created when you launch Fast-SSH.
This database is used to store the number of connections to a service and the date of last connection.

# Installation
Download the latest release for your platform [here](https://github.com/Julien-R44/cli-candlestick-chart/releases) and put in directory in your PATH. ( Packages managers coming soon )

If you use cargo you can run `cargo install fast-ssh`

Then you can launch Fast-SSH with `fast-ssh`.
Loading

0 comments on commit 81167d3

Please sign in to comment.