1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/haste_ynh.git synced 2024-09-03 20:36:28 +02:00

Add comments and improve texts

This commit is contained in:
mbugeia 2016-10-26 23:35:42 +02:00
parent 9db229b8d9
commit 0a67a4fffa
4 changed files with 26 additions and 10 deletions

View file

@ -1,14 +1,28 @@
# Work In Progress : do not install in production
# Haste for YunoHost
Haste is an open-source pastebin software written in node.js.
A publicly available version can be found at hastebin.com
[Haste Github repository](https://github.com/seejohnrun/haste-server)
A publicly available version can be found at [http://hastebin.com/](http://hastebin.com/)
## Requirements
- Functionnal instance of [YunoHost](https://yunohost.org)
## `haste` command
With this package is included the `haste` command based on this:
https://github.com/diethnis/standalones/blob/master/hastebin.sh
This allow to pipe text to it and upload the text on your haste instance. You can also install it on your local computer by copying the file /usr/bin/haste on a computer that has bash and curl.
```
bash
cat LICENSE | haste
######################################################################## 100,0%
https://haste.example.com/zuyejeduzu
```
## Installation
From command line:
@ -25,4 +39,4 @@ From command line:
## License
This package is published under MIT License
Both Haste and this package are published under MIT License

View file

@ -1,5 +1,5 @@
[Unit]
Description=Haste is an open-source pastebin software written in node.js
Description=Haste is an open-source pastebin software
After=syslog.target
After=network.target

View file

@ -1,5 +1,7 @@
#!/bin/bash
# sources from https://github.com/diethnis/standalones/blob/master/hastebin.sh
PASTE_URL="YNH_HASTE_URL"
haste () {

View file

@ -11,7 +11,7 @@
"maintainer": {
"name": "mbugeia",
"email": "maxime.bugeia@gmail.com",
"url": "http://example.com"
"url": "https://github.com/YunoHost-Apps/haste_ynh"
},
"requirements": {
"yunohost": ">> 2.4.0"
@ -35,8 +35,8 @@
"name": "path",
"type": "path",
"ask": {
"en": "Choose a path for Haste, only root works for now.",
"fr": "Choisissez un chemin pour Haste, seul la racine fonctionne."
"en": "Choose a path for Haste, only / is allowed.",
"fr": "Choisissez un chemin pour Haste, seul / est autorisé."
},
"example": "/",
"default": "/"
@ -45,8 +45,8 @@
"name": "is_public",
"type": "boolean",
"ask": {
"en": "Is it a public site?",
"fr": "Est-ce un site publique ?"
"en": "Is it a public site? (you won't be able to use haste command easily if not)",
"fr": "Est-ce un site publique ? (si non, vous ne pourrez pas utiliser la commande haste facilement)"
},
"default": true
}