etix / mirrorbits

Mirrorbits is a geographical download redirector written in Go for distributing files efficiently across a set of mirrors.
MIT License
497 stars 90 forks source link

list #125

Closed loanfedora closed 7 months ago

loanfedora commented 2 years ago

help page

root@centos:~# mirrorbits list -h

Usage: mirrorbits list

Get the list of mirrors

  -disabled
        List disabled mirrors only
  -down
        List only mirrors currently down

doing disable

root@centos:~# mirrorbits list -disabled
Identifier      STATE       SINCE
<REMOVED>   disabled    (Mon, 01 Jan 0001 00:00:00 UTC)
<REMOVED>   disabled    (Mon, 01 Jan 0001 00:00:00 UTC)
<REMOVED>   disabled    (Mon, 01 Jan 0001 00:00:00 UTC)
<REMOVED> disabled  (Mon, 01 Jan 0001 00:00:00 UTC)
<REMOVED> disabled  (Mon, 01 Jan 0001 00:00:00 UTC)
<REMOVED>   disabled    (Mon, 01 Jan 0001 00:00:00 UTC)

doing down

root@centos:~# mirrorbits list -down
Identifier          STATE       SINCE
<REMOVED>           down        (Mon, 01 Jan 0001 00:00:00 UTC)
<REMOVED>       disabled    (Mon, 01 Jan 0001 00:00:00 UTC)
<REMOVED>   down        (Mon, 01 Jan 0001 00:00:00 UTC)
<REMOVED>           down        (Mon, 01 Jan 0001 00:00:00 UTC)
<REMOVED>       disabled    (Mon, 01 Jan 0001 00:00:00 UTC)
<REMOVED>       down        (Mon, 01 Jan 0001 00:00:00 UTC)
<REMOVED>   down        (Mon, 01 Jan 0001 00:00:00 UTC)
<REMOVED>           down        (Mon, 01 Jan 0001 00:00:00 UTC)
<REMOVED>       disabled    (Mon, 01 Jan 0001 00:00:00 UTC)
<REMOVED>       down        (Mon, 01 Jan 0001 00:00:00 UTC)
<REMOVED>   down        (Mon, 01 Jan 0001 00:00:00 UTC)
<REMOVED>       down        (Mon, 01 Jan 0001 00:00:00 UTC)
<REMOVED>           down        (Mon, 01 Jan 0001 00:00:00 UTC)
<REMOVED>   disabled    (Mon, 01 Jan 0001 00:00:00 UTC)
<REMOVED>   down        (Mon, 01 Jan 0001 00:00:00 UTC)
<REMOVED>   disabled    (Mon, 01 Jan 0001 00:00:00 UTC)
<REMOVED>       disabled    (Mon, 01 Jan 0001 00:00:00 UTC)

why does down have disabled in? help screen says it should be down only? like it is with disable?

ott commented 1 year ago

I tried to address this issue in pull request #132.

jbkempf commented 7 months ago

Closed with #132