Giter Club home page Giter Club logo

Comments (7)

cole-h avatar cole-h commented on June 15, 2024 1

Ah, I was under the impression it only wanted to read from a .env file. That makes sense. I can do that, thanks!

from reddsaver.

cole-h avatar cole-h commented on June 15, 2024 1

Since TOTP changes so frequently, I had to run reddsaver with direnv exec . cargo run --release -- [args] which works a charm (otherwise, I'd have to cd .. and cd -, or direnv reload first). Thanks for reminding me of something so obvious!

from reddsaver.

cole-h avatar cole-h commented on June 15, 2024 1

Yep, thanks, I left that out of my hand-typed command line :P

(Though I did run it in debug mode a few times -- speed wasn't that bad for me)

from reddsaver.

manojkarthick avatar manojkarthick commented on June 15, 2024

@cole-h The username and password just need to be present in the environment to be picked up by reddsaver. So, you could omit username and password from .env file. You can use an external script or a tool like direnv to set the username, password by running a command. As long as it is present in the environment, it should be picked up.

With regards to the : delimiter: that is a Reddit API setting, so I'm afraid it's something that's out of my control.

from reddsaver.

manojkarthick avatar manojkarthick commented on June 15, 2024

Ah, I was under the impression it only wanted to read from a .env file. That makes sense. I can do that, thanks!

Great. Please file an issue in case you encounter any problems. You can use the reddsaver --show-config command to check if the variables are picked up properly.

from reddsaver.

manojkarthick avatar manojkarthick commented on June 15, 2024

Since TOTP changes so frequently, I had to run reddsaver with direnv exec . cargo run -- [args] which works a charm (otherwise, I'd have to cd .. and cd -, or direnv reload first). Thanks for reminding me of something so obvious!

Great! Just wanted to leave a reminder to use --release profile for cargo run to run the optimized artifact (Not sure if you're using that already)

from reddsaver.

manojkarthick avatar manojkarthick commented on June 15, 2024

Awesome! Running the release binary makes a huge difference compared to the debug binary for me.

from reddsaver.

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.