TW-1440: Implement "task import" from STDIN

- Read tasks from STDIN when no files are specified, or only "-"
  is specified.
This commit is contained in:
Wilhelm Schuermann 2015-05-25 14:25:43 +02:00
parent 3e043291f0
commit a78c9a6eb8
14 changed files with 124 additions and 42 deletions

View file

@ -449,7 +449,6 @@
#define STRING_CMD_IMPORT_USAGE "Importiert eine JSON-Datei"
#define STRING_CMD_IMPORT_SUMMARY "{1} Aufgabe importiert."
#define STRING_CMD_IMPORT_NOFILE "Sie müssen eine zu importierende Datei angeben."
#define STRING_CMD_IMPORT_FILE "Importiere '{1}'"
#define STRING_CMD_IMPORT_MISSING "Datei '{1}' nicht gefunden."
#define STRING_TASK_NO_DESC "Kommentar fehlt Beschreibung: {1}"

View file

@ -449,7 +449,6 @@
#define STRING_CMD_IMPORT_USAGE "Imports JSON files"
#define STRING_CMD_IMPORT_SUMMARY "Imported {1} tasks."
#define STRING_CMD_IMPORT_NOFILE "You must specify a file to import."
#define STRING_CMD_IMPORT_FILE "Importing '{1}'"
#define STRING_CMD_IMPORT_MISSING "File '{1}' not found."
#define STRING_TASK_NO_DESC "Annotation is missing a description: {1}"

View file

@ -449,7 +449,6 @@
#define STRING_CMD_IMPORT_USAGE "Importas JSON-dosierojn"
#define STRING_CMD_IMPORT_SUMMARY "Importis {1} taskojn."
#define STRING_CMD_IMPORT_NOFILE "Vi devas specifi kiu dosieron import."
#define STRING_CMD_IMPORT_FILE "Importanta '{1}'"
#define STRING_CMD_IMPORT_MISSING "File '{1}' not found."
#define STRING_TASK_NO_DESC "Komento havas mankon de priskribo: {1}"

View file

@ -457,7 +457,6 @@
#define STRING_CMD_IMPORT_USAGE "Importa archivos JSON"
#define STRING_CMD_IMPORT_SUMMARY "Importadas {1} tareas."
#define STRING_CMD_IMPORT_NOFILE "Debe especificar un archivo a importar."
#define STRING_CMD_IMPORT_FILE "Importando '{1}'"
#define STRING_CMD_IMPORT_MISSING "Archivo '{1}' no encontrado."
#define STRING_TASK_NO_DESC "La anotación carece de descripción: {1}"

View file

@ -449,7 +449,6 @@
#define STRING_CMD_IMPORT_USAGE "Imports JSON files"
#define STRING_CMD_IMPORT_SUMMARY "Imported {1} tasks."
#define STRING_CMD_IMPORT_NOFILE "You must specify a file to import."
#define STRING_CMD_IMPORT_FILE "Importing '{1}'"
#define STRING_CMD_IMPORT_MISSING "File '{1}' not found."
#define STRING_TASK_NO_DESC "Annotation is missing a description: {1}"

View file

@ -448,7 +448,6 @@
#define STRING_CMD_IMPORT_USAGE "Importa file JSON"
#define STRING_CMD_IMPORT_SUMMARY "Importati {1} task."
#define STRING_CMD_IMPORT_NOFILE "Specificare il file da importare."
#define STRING_CMD_IMPORT_FILE "Importazione di '{1}'"
#define STRING_CMD_IMPORT_MISSING "File '{1}' not found."
#define STRING_TASK_NO_DESC "Annotazione senza descrizione: {1}"

View file

@ -449,7 +449,6 @@
#define STRING_CMD_IMPORT_USAGE "JSON ファイルをインポート"
#define STRING_CMD_IMPORT_SUMMARY "{1} task をインポートしました。"
#define STRING_CMD_IMPORT_NOFILE "インポートするファイルを指定してください。"
#define STRING_CMD_IMPORT_FILE "'{1}' をインポート中"
#define STRING_CMD_IMPORT_MISSING "ファイル '{1}' が見つかりません。"
#define STRING_TASK_NO_DESC "Annotation is missing a description: {1}"

View file

@ -449,7 +449,6 @@
#define STRING_CMD_IMPORT_USAGE "Importuje pliki JSON"
#define STRING_CMD_IMPORT_SUMMARY "Zaimportowano {1} zadań."
#define STRING_CMD_IMPORT_NOFILE "Musisz podać plik do zaimportowania."
#define STRING_CMD_IMPORT_FILE "Importowanie '{1}'"
#define STRING_CMD_IMPORT_MISSING "File '{1}' not found."
#define STRING_TASK_NO_DESC "Komentarz nie posiada treści: {1}"

View file

@ -449,7 +449,6 @@
#define STRING_CMD_IMPORT_USAGE "Importa ficheiros JSON"
#define STRING_CMD_IMPORT_SUMMARY "Importadas {1} tarefas."
#define STRING_CMD_IMPORT_NOFILE "Necessita especificar o ficheiro a importar."
#define STRING_CMD_IMPORT_FILE "A importar '{1}'"
#define STRING_CMD_IMPORT_MISSING "File '{1}' not found."
#define STRING_TASK_NO_DESC "Descrição da anotação em falta: {1}"