Giter VIP home page Giter VIP logo

ea's People

Contributors

dduan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

deejayem

ea's Issues

Manual generation is not tested on CI

Generating manual requires pandoc, which can be run via script/pandoc-docker if necessary.
Whenever docs/UserManual is edited, make manual should be run on CI to ensure there's no delta between the generated result and docs/ea.1.

Potential things to overcome:

  1. macOS on GitHub Actions doesn't provide docker - we could install pandoc via brew.
  2. pandoc includes its version number in generated man pages. This number can be different in different VMs. So this generated line must be deleted.

Doesn't support Python traceback

a python trace back looks like:

Traceback (most recent call last):
  File "/tmp/test2.py", line 1, in <module>
    import test
  File "/private/tmp/test.py", line 1
    def f()

Doesn't support output from rustc

rustc output looks like

error[E0412]: cannot find type `PathBufx` in this scope
    --> src/archive.rs:8:30
     |
8    |       static ref ARCHIVE_PATH: PathBufx = [
     |                                ^^^^^^^^ help: a struct with a similar name exists: `PathBuf`

warning: unused import: `PathBuf`
 --> src/archive.rs:4:17
  |
4 | use std::path::{PathBuf, Path};
  |                 ^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

error[E0599]: no method named `as_path` found for struct `ARCHIVE_PATH` in the current scope
  --> src/archive.rs:33:27
   |
7  | / lazy_static! {
8  | |     static ref ARCHIVE_PATH: PathBufx = [
9  | |         "/tmp".to_string(),
10 | |         format!(
...  |
16 | |     .collect();
17 | | }
   | |_- method `as_path` not found for this
...
33 |       write_to(ARCHIVE_PATH.as_path(), list)
   |                             ^^^^^^^ method not found in `ARCHIVE_PATH`

error[E0599]: no method named `as_path` found for struct `ARCHIVE_PATH` in the current scope
  --> src/archive.rs:42:28
   |
7  | / lazy_static! {
8  | |     static ref ARCHIVE_PATH: PathBufx = [
9  | |         "/tmp".to_string(),
10 | |         format!(
...  |
16 | |     .collect();
17 | | }
   | |_- method `as_path` not found for this
...
42 |       read_from(ARCHIVE_PATH.as_path())
   |                              ^^^^^^^ method not found in `ARCHIVE_PATH`

Some errors have detailed explanations: E0412, E0599.
For more information about an error, try `rustc --explain E0412`.
warning: `ea-command` (lib) generated 1 warning
error: could not compile `ea-command` due to 3 previous errors; 1 warning emitted

Add docs for packaging

docs should explain how to find:

  • completion scripts
  • unix manual
  • shell integration scripts

Empty result overrides existing result

When a command produces 0 paths, right now ea would write 0 paths on disk, erasing whatever is already there. This doesn't help anybody. 0 paths should lead to 0 writes.

Does not support streaming input

Right now ea run takes in command output in one batch instead of with a buffered approach. This can create a bad UX when command output is produced slowly. We should support streaming outputs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.