Skip to main content

![Store Logo](store.png)

A tool to store terminal commands and create a backup on Google drive.

## Features

* Save a command
* Search for a command
* Push store file ( Create backup on Google drive)
* Pull store file (Restore file from Google drive)
* List all commands

## Problem

After initially searching Google and Stackoverflow for a command, I have to search again the next time I need to use the command.
I think ctrl + r has a limit of commands it can save.

## Installation

Python 3.6+

```commandline
$ pip install store-cli
```


## How to Use

```commandline
$ store --help
```
Displays the list of commands

```commandline
$ store save --help
```
Displays the options available for a command

```commandline
$ store init
```
Initializes the file where the commands are saved.

```commandline
$ store save -d 'commit' -c 'git commit -m 'commit message'
```
Saves the command and the description of the command

```commandline
$ store search -q 'init'
```
Search for the query init

```commandline
store list
```
Lists all the commands that has been saved

```commandline
$ store push -f
```
This pushes the updated file to your Google drive account. Use the `--first` option the first time you are
using the `push` command. Subsequently, just use `store push` to push to Google drive.

```commandline
$ store pull -p 'push_id'
```
Whenever you use the push command, a push_id will be given to you. Save the id. You need this id to
restore/sync your commands between computers.

```commandline
$ store show
```
This displays the push id. You receive a push id after using the `push` command.


## Development Purposes

* For Development
* clone the repo
```commandline
$ git clone https://github.com/iyanuashiri/store.git
```
* get your `client_secret.json` from [Oauth](https://console.cloud.google.com/apis/credentials/oauthclient). Make sure to enable [Drive Api](https://console.cloud.google.com/apis/library/drive.googleapis.com?q=Drive) for the project.
* rename the client secret to `credentials.json` and place it in the same directory as setup.py.
* install the package:
```sh
# move into setup.py directory
$ cd
# install package in edit mode
$ pip install -e . #note the dot
```




## How to Contribute

Click here to read the [contributing](https://github.com/iyanuashiri/store/blob/master/CONTRIBUTING.md) guide.

Feature requests, suggestions and improvements are welcomed.


## Contributors

[Iyanu Ajao](http://github.com/iyanuashiri)



Release files for store-cli 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for store-cli 1.0.0
File Size Uploaded
store-cli-1.0.0.tar.gz 12.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for store-cli 1.0.0
File Interpreter ABI Platform
store_cli-1.0.0-py2-none-any.whl Python 2 none any Details

Total release size: 18.6 kB

Release files / store-cli-1.0.0.tar.gz

Download URL store-cli-1.0.0.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6155905251709c50296e6e47bcb456017fe134f3741895a36c942f08b702023d
BLAKE2b-256 checksum
How to use checksums
4496ee74ff0e98228ad289260a6dd21b0449074a02353872dad59ff79afffe29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Release files / store_cli-1.0.0-py2-none-any.whl

Download URL store_cli-1.0.0-py2-none-any.whl
Size 6.1 kB
Tags Python 2
SHA-256 checksum
How to use checksums
f2efc3b1b2e22c65cf56f6522f91a7a161233266ac21b5e89155b24484207706
BLAKE2b-256 checksum
How to use checksums
4942315d4f4604097697c1419e472abc62551ae0cee4c4532f5168ddb3002638
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page