Skip to content

Commit

Permalink
Merge branch 'release/0.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitchell Stanley committed Sep 2, 2019
2 parents 035dec4 + 77e6bc4 commit b1ce274
Show file tree
Hide file tree
Showing 29 changed files with 12,056 additions and 264 deletions.
2 changes: 1 addition & 1 deletion .crystal-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.29.0
0.30.1
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
crystal 0.29.0
crystal 0.30.1
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Changelog

## 0.2.0

### Features

* Added `new` command to create new snippets from command line.
* new `--run` flag for `search` command to run the selected snippet
* Added ability to create snippets from the `web` interface.

### Changes

* `search` command now copies the selected snippet instead of running.
* Updated Crystal to `0.30.1`
* Updated `lodash` dependency for `web` interface.

### Bugfixes

None!
24 changes: 20 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ Log-in to your Snipline account and sync your snippets.
Follow login instructions (Enter email and token)

```bash
snipline login
snipcli login
```

Download snippets from your account

```bash
snipline sync
snipcli sync
```

This will create two files on your system: `~/.config/snipline/config.toml` and `~/.config/snipline/snippets.json`.
Expand All @@ -60,10 +60,26 @@ This will create two files on your system: `~/.config/snipline/config.toml` and
A basic search can be done with the `search` command.

```bash
snipline search <searchterm>
snipcli search <searchterm>
```

Search options include `field`, and `limit`. See `snipcli search --help` for more information
By default search will ask if you wish to copy the result to clipboard, to run the result in the current terminal, use the `run` flag.

```bash
snipline search <searchterm> --run
```

Search options include `field`, `limit`, `run`. See `snipcli search --help` for more information

Note that as of 0.2.0 it's not possible to search and copy to clipboard from a Linux VM/SSH session. Select `no` when prompted to copy to clipboard to continue and use the `--run` flag to run the command instead.

### Creating a new snippet

You can create a new snippet by using the `new` command. This will open a TOML file in the text editor of your preference. Once closed it will attempt to add it to your `snippets.json` file and sync to Snipline Cloud.

```bash
snipline new
```

### Web interface

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "snipcli",
"version": "0.1.5",
"version": "0.2.0",
"main": "index.js",
"author": "Mitchell Stanley <[email protected]>",
"license": "MIT",
"dependencies": {
"cross-env": "^5.2.0",
"laravel-mix": "^4.0.15",
"tailwindcss": "^1.0.1"
"tailwindcss": "^1.0.1",
"lodash": "^4.17.13"
},
"scripts": {
"dev": "yarn run development",
Expand Down
Loading

0 comments on commit b1ce274

Please sign in to comment.