-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
159 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
crystal 0.32.1 | ||
crystal 0.35.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM crystallang/crystal:0.35.1-alpine | ||
RUN apk add --update --no-cache --force-overwrite \ | ||
openssl-libs-static openssl-dev g++ gc-dev \ | ||
libc-dev libevent-dev libevent-static libxml2-dev llvm llvm-dev \ | ||
llvm-static make pcre-dev readline-dev readline-static \ | ||
yaml-dev zlib-dev zlib-static ncurses-static sqlite-dev sqlite-static openssl-dev | ||
#ncurses-libs ncurses-dev | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,20 +26,20 @@ sudo snap install snipcli --beta | |
|
||
### From source | ||
|
||
Snipline CLI requires Crystal 0.30.1 to be installed to install from source | ||
Snipline CLI requires Crystal 0.35.1 to be installed to install from source | ||
|
||
```bash | ||
# Clone the repo | ||
git clone [email protected]:snipline/snipcli.git | ||
# Checkout the latest release | ||
git checkout <tagname - e.g. 0.3.1> | ||
git checkout <tagname - e.g. 0.4.0> | ||
# Make sure you have the same Crystal installed that's required in shard.yml | ||
crystal -v | ||
# Install dependencies | ||
shards | ||
# Build app for Crystal 0.32.1 / MacOS | ||
# Build app for Crystal 0.34.0 / MacOS | ||
crystal build src/snipline_cli.cr -o snipcli --release -o snipcli | ||
# Build app for Crystal 0.31.1 / Linux (Alpine) | ||
# Build app for Crystal 0.34.0 / Linux (Alpine) | ||
crystal build src/snipline_cli.cr -o snipcli --release -o snipcli -Dstatic_linux | ||
./snipcli --version | ||
``` | ||
|
@@ -128,11 +128,12 @@ As of 0.3.0 the web interface has been removed infavour of the new TUI. | |
|
||
See the Installation section on building from source. | ||
|
||
Set log levels for additional development output. | ||
Set log levels for additional development output and specifiy different config files for testing | ||
|
||
```bash | ||
crystal build src/snipline_cli.cr -o snipcli | ||
env LOG_LEVEL=DEBUG ./snipcli search git | ||
env CONFIG_FILE=~/.config/snipline/config.dev.toml ./snipcli search login | ||
env CONFIG_FILE=~/.config/snipline/config.dev.toml env CRYSTAL_LOG_LEVEL=INFO ./snipcli search git | ||
``` | ||
|
||
To change the config file location (For testing) use the `CONFIG_FILE` environment variable. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,46 @@ | ||
version: 1.0 | ||
version: 2.0 | ||
shards: | ||
admiral: | ||
github: jwaldrip/admiral.cr | ||
version: 1.9.0 | ||
git: https://github.com/jwaldrip/admiral.cr.git | ||
version: 1.11.2 | ||
|
||
ameba: | ||
github: veelenga/ameba | ||
version: 0.11.0 | ||
git: https://github.com/veelenga/ameba.git | ||
version: 0.13.2 | ||
|
||
crecto: | ||
github: Crecto/crecto | ||
version: 0.11.2 | ||
git: https://github.com/Crecto/crecto.git | ||
version: 0.11.3 | ||
|
||
crest: | ||
github: mamantoha/crest | ||
version: 0.22.0 | ||
git: https://github.com/mamantoha/crest.git | ||
version: 0.26.1 | ||
|
||
db: | ||
github: crystal-lang/crystal-db | ||
version: 0.7.0 | ||
git: https://github.com/crystal-lang/crystal-db.git | ||
version: 0.9.0 | ||
|
||
fuzzy_match: | ||
github: acoustep/fuzzy_match.cr | ||
commit: fe9eed429118adc8f0f9f6c91de4f11cdca5840e | ||
git: https://github.com/acoustep/fuzzy_match.cr.git | ||
version: 0.3.0+git.commit.3834b23deab80c4554ce15b015b804f010e2b768 | ||
|
||
http-client-digest_auth: | ||
github: mamantoha/http-client-digest_auth | ||
version: 0.3.0 | ||
git: https://github.com/mamantoha/http-client-digest_auth.git | ||
version: 0.4.0 | ||
|
||
http_proxy: | ||
git: https://github.com/mamantoha/http_proxy.git | ||
version: 0.7.1 | ||
|
||
ncurses: | ||
github: JohnDowson/ncurses | ||
commit: d0e46f673b6a443255269ce610d598a0fdc7d159 | ||
git: https://github.com/JohnDowson/ncurses.git | ||
version: 0.0.3+git.commit.d0e46f673b6a443255269ce610d598a0fdc7d159 | ||
|
||
sqlite3: | ||
github: crystal-lang/crystal-sqlite3 | ||
version: 0.14.0 | ||
git: https://github.com/crystal-lang/crystal-sqlite3.git | ||
version: 0.16.0 | ||
|
||
toml: | ||
github: crystal-community/toml.cr | ||
commit: d02de85eed68a70dc97ab6d6e52831a4d0e890fe | ||
git: https://github.com/crystal-community/toml.cr.git | ||
version: 0.6.1+git.commit.d02de85eed68a70dc97ab6d6e52831a4d0e890fe | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: cli | ||
version: 0.3.3 | ||
version: 0.4.0 | ||
|
||
authors: | ||
- Mitchell Stanley <[email protected]> | ||
|
@@ -8,7 +8,7 @@ targets: | |
cli2: | ||
main: src/cli.cr | ||
|
||
crystal: < 0.33 | ||
crystal: < 0.36.0 | ||
|
||
license: MIT | ||
|
||
|
@@ -17,7 +17,7 @@ dependencies: | |
github: jwaldrip/admiral.cr | ||
crest: | ||
github: mamantoha/crest | ||
version: ~> 0.22.0 | ||
version: ~> 0.26.1 | ||
toml: | ||
github: crystal-community/toml.cr | ||
branch: master | ||
|
@@ -26,9 +26,10 @@ dependencies: | |
branch: borders_and_lines | ||
crecto: | ||
github: Crecto/crecto | ||
version: ~> 0.11.3 | ||
sqlite3: | ||
github: crystal-lang/crystal-sqlite3 | ||
version: ~> 0.14.0 | ||
version: ~> 0.16.0 | ||
fuzzy_match: | ||
github: acoustep/fuzzy_match.cr | ||
branch: master | ||
|
@@ -38,4 +39,4 @@ dependencies: | |
development_dependencies: | ||
ameba: | ||
github: veelenga/ameba | ||
version: ~> 0.11.0 | ||
version: ~> 0.13.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.