CTFd / ctfcli

ctfcli is a tool to manage Capture The Flag events and challenges
https://ctfd.io/
Apache License 2.0
172 stars 72 forks source link

Running sync & install commands when inside a challenge directory now fails silently #64

Open arxenix opened 3 years ago

arxenix commented 3 years ago

Not sure if this is intended behavior, but in the previous build of ctfcli, when in a challenge directory, running ctf challenge sync or ctf challenge install would sync/install that challenge

In 0.0.8, it fails silently

ColdHeat commented 3 years ago

I think that you want ctf challenge install . and ctf challenge sync .

Without the argument was always supposed to install/sync all challenges. I think perhaps you haven't added the challenge into the .ctf/config file with ctf challenge add.

I see how this could be confusing so I'll leave this open to see if anyone has a better workflow or if I come up with something better.

tyhdefu commented 2 months ago

ctf challenge sync . does not work for me. I have to use the name of the current directory even if i'm in the directory. ValueError: 'challenge.yml' is not in the subpath of '..../Documents/my-ctf/ctfcli-challenges' OR one path is relative and the other is absolute.