Skip to content

FR: depot token print and other scripting tools #410

@colinmarc

Description

@colinmarc

Hi, thanks for the awesome tool! We're on the free trial and I'm trying to integrate the sccache support transparently into our rust workflow. depot cargo is great, but I would like to make it a bit more transparent to our developers on their laptops. For reference, we use mise.

A few things that would make it easier to script:

  • A depot token subcommand to get/print the API token from the local state. I can read cat ~/.config/depot/depot.yaml, but it doesn't seem to be part of the public interface, and reading yaml from the command line is error prone.
    • Similarly, some way to get the validity of the current token would be nice.
  • A --quiet flag for depot login that doesn't print anything if the user is already logged in

My ideal workflow would be to enable depot transparently/automatically once the user has run depot login, and to print a help/warning message otherwise.

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions