Giter Site home page Giter Site logo

Comments (9)

cleverwise avatar cleverwise commented on May 27, 2024

Well that would make things easier. However it would also eliminate the safety check. I'll look into this feature.

from cya.

cspaniard avatar cspaniard commented on May 27, 2024

"safety checks" are strange, since us humans tend to go around them ;). If you have, let's say, 5 profiles (just a few).... more than likely you will end up getting the list with

$ grep -i mydata_ /home/cya/cya.conf
MYDATA_johnfiles="/home/john/ /mnt/wd-password/john/"
MYDATA_johnwd="/home/john/ /mnt/wd-password/john/"
MYDATA_johnnas="/home/john/ /nas/john/"
MYDATA_maryfiles="/home/mary/ /mnt/wd-password/mary/"

and then, copy & paste the name you are after...

IMHO, this copy & paste and expanding automatically end up with the same result with the same "safety check"... is it really that dangerous from a human mistake point of view ?

Just a thought

from cya.

cleverwise avatar cleverwise commented on May 27, 2024

That is how I was thinking of doing it. A list function rather than tab. I personally like listing the directories as that is the safety check rather than hitting tab to auto fill a profile. It seems the list is a good blend of both. :-)

from cya.

cspaniard avatar cspaniard commented on May 27, 2024

Nice... maybe for sake of simplicity

cya mydata [enter]

could return the list...

What do you think ?

from cya.

cleverwise avatar cleverwise commented on May 27, 2024

Yeah that would work.

from cya.

cleverwise avatar cleverwise commented on May 27, 2024

Okay 2.3.1+dev/2.4 will list available profile names.

from cya.

cspaniard avatar cspaniard commented on May 27, 2024

My initial tests executing

cya mydata

yields the result

☀ Cover Your Ass(ets) v2.3.1 ☀

ACTION ⯮ Backing Up Your User Data

{ERROR} No such backup profile

Available backup profiles:
---------------------------------------------
test1
david

Although technically true, the fact of not providing a profile was done on purpose to get the list.

Should I be getting an error message ? In order to get the list, it is what I am supposed to do. Why the error?

I understand that if a profile was provided and it does not exist, the error should be displayed. However, no profile was provided in order to retrieve the list.

from cya.

cleverwise avatar cleverwise commented on May 27, 2024

Fair enough. I modified 2.3.2 to display "Please specify a backup profile" instead of an error.

from cya.

cspaniard avatar cspaniard commented on May 27, 2024

Works as expected

from cya.

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.