Git Product home page Git Product logo

Comments (3)

Robdel12 avatar Robdel12 commented on May 25, 2024

Hey @j-quelly! You're using the old "CLI" (@percy/agent) docs with the new CLI package. The new proper CLI snapshot docs are located here: https://docs.percy.io/docs/cli-snapshot

I've added a warning to the top of the current snapshot docs (for @percy/agent). 👍🏼 We're aiming to have @percy/agent fully deprecated by the end of the quarter and all SDKs migrated over to the new toolchain (follow along on #57)


As for the globs, can you add --verbose to get debug logs?

from cli.

wwilsman avatar wwilsman commented on May 25, 2024

Hey @j-quelly! I wanted to add that the globs and your arguments are likely not being interpreted correctly.

For instance, in your second example your shell is automatically expanding the glob (as mine does). That’s why the error is from zsh and not Percy. You’ll want to make sure you add quotes to the glob to prevent that from happening.

For your last example, you have the ignore flag followed by three directories, but how will the command know which arguments belong to the flag and which arguments might be positional arguments? It can’t, so it only treats the first arg as the value and ignores the rest.

To use multiple globs, you must specify the flag multiple times (--ignore blog --ignore docs --ignore legacy-docs). You could also construct a single glob to match all files (e.g. --ignore "{blog,docs,legacy-*}").

Hope this helps!

from cli.

Robdel12 avatar Robdel12 commented on May 25, 2024

Going to close out but feel free to keep commenting :)

from cli.

Related Issues (20)

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.