Comments (9)
Je ferai plus un truc :
{
"software": "potodo",
"version": "0.4.0",
"directories": [
{
"path": ".",
"completion": 86.7,
"files": {
"glossay.po": {
"translated": 2,
"untranslated": 3,
"completion": 66.0,
"fuzzies": null
}
}
},
{
"path": "library",
...
}
]
}
pour itérer plus facilement (et avoir un schema qui ne dépende pas de la structure du dossier à analyser).
from potodo.
Je pense que @awecx a raison. Le -
c'est surtout pratique quand le comportement par défaut c'est d'écrire dans un fichier, donc peut être typiquement du binaire. Là c'est du texte on peut envoyer sur stdout par défaut, et utiliser une redirection shell pour écrire dans un fichier, en effet.
from potodo.
Idées en vrac:
-j
--json
overwrites the normal output and outputs to json either IN STDOUT
or in file given on the CLI
This will use another function to process the .po
files and format that into a dict.
output json example:
{
"software": "potodo",
"version": "0.4.0",
"directories": {
".": {
"completion": 86.7,
"files": {
"glossay.po": {
"translated": 2,
"untranslated": 3,
"completion": 66.0,
"fuzzies": null
}
}
},
"library": {...}
}
}
from potodo.
Ca me va très bien ! 👌
from potodo.
Et donc osef de --count quand --json est activée ?
On met le pourcentage ET le nombre.
from potodo.
Et donc osef de --count quand --json est activée ?
Ouais clairement
On met le pourcentage ET le nombre.
En vrai on peux mette beaucoup de choses mais je pense
- nb pas traduit
- nb traduit
- nb fuzzies
- percent per file
- percent per folder
ca devrait suffire
from potodo.
--json -
pour stdout, --json FILE
pour écrire dans le fichier FILE
?
from potodo.
--json -
pour stdout,--json FILE
pour écrire dans le fichierFILE
?
Ou bien --json
pour stdout et --json > FILE
pour écrire dans le fichier FILE
? :-)
C'est pas pour troller mais ça amène de l'intelligence (ouvrir le fichier toussa) là où ça devrait être la responsabilité de l'appelant ?
from potodo.
Les deux me vont 👌
from potodo.
Related Issues (20)
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- Adding contributors HOT 6
- Add default values ? HOT 2
- LC_MESSAGES from venv should not be here
- Handle arguments passed in the cache to invalidate it if arguments changed
- Cache: If only a file has changed, only refresh this one
- Github reservations: Support PR titles and multiple files per PR
- Potodo is not working on Windows HOT 8
- What is cache_args? HOT 6
- Move from travis to github actions HOT 1
- potodo fails on divide by 0 HOT 5
- Setup action to publish on twine when released on GH HOT 1
- Exclude has to be given full path if not in current directory
- Option to only display file that are done but only have fuzzies
- --no--cache doesn't work HOT 4
- potodo doesn't work on windows 10 HOT 4
- potodo still doesn't work on windows 10 HOT 2
- TypeError: string indices must be integers HOT 1
- Move to an open-source forge HOT 1
- Base progress calculations on external file structure HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from potodo.