zerobin 1.5.0 → 1.5.1
raw patch · 4 files changed
+16/−9 lines, 4 files
Files
- ChangeLog.md +7/−0
- README.md +1/−1
- cli/Main.hs +6/−6
- zerobin.cabal +2/−2
+ ChangeLog.md view
@@ -0,0 +1,7 @@+1.5.1+=====++* Added ChangeLog+* zerobin command supports reading stdin:+ `zerobin -f /etc/fstab` can be done as+ `cat /etc/fstab | zerobin -f -` or `zerobin -f < /etc/fstab`
README.md view
@@ -58,7 +58,7 @@ $ git clone https://github.com/zalora/zerobin.git $ cd zerobin- $ cabal install --dependencies-only+ $ cabal install -f nodejs --dependencies-only $ cabal install -f nodejs --ghc-option="-Werror" $ # get nodejs and npm, e. g. on Debian; sudo apt-get install nodejs npm $ npm install sjcl
cli/Main.hs view
@@ -24,7 +24,7 @@ Options: -b, --bin=BIN 0bin service [default: https://paste.ec]- -f, --file Paste the content of file TEXT instead of plain TEXT+ -f, --file Paste the content of file TEXT ("-" for stdin) -e, --expire=E Set expiration of paste: once, day, week, month [default: day] -h, --help Show this message@@ -32,6 +32,7 @@ Examples: zerobin hello paste "hello" for a day zerobin -f /etc/fstab paste file /etc/fstab for a day+ cat /etc/fstab | zerobin -f - likewise zerobin -e once hello paste "hello", it will burn after reading zerobin -b http://0bin.net hello paste to 0bin.net |]@@ -52,11 +53,10 @@ exitFailure getContent :: Bool -> String -> IO BS.ByteString-getContent asFile text =- if not asFile- then return $ C.pack text- else BS.readFile text-+getContent fromFile text+ | fromFile && (text == "-") = BS.getContents+ | fromFile = BS.readFile text+ | otherwise = return $ C.pack text main :: IO () main = do
zerobin.cabal view
@@ -1,5 +1,5 @@ name: zerobin-version: 1.5.0+version: 1.5.1 synopsis: Post to 0bin services description: Post encrypted content to 0bin sites like http://0bin.net or https://paste.ec@@ -10,7 +10,7 @@ copyright: 2015, Zalora South East Asia Pte. Ltd category: Cryptography, Web build-type: Simple-extra-source-files: README.md+extra-source-files: README.md ChangeLog.md cabal-version: >= 1.20 source-repository head