CLI¶
Subliminal uses click to provide a powerful CLI.
-
class
subliminal.cli.MutexLock(filename)[source]¶ MutexLockis a thread-based rw lock based ondogpile.core.ReadWriteMutex.
-
class
subliminal.cli.Config(path)[source]¶ A
ConfigParserwrapper to store configuration.Interaction with the configuration is done with the properties.
Parameters: path (str) – path to the configuration file. -
path= None¶ Path to the configuration file
-
config= None¶ The underlying configuration object
-
-
class
subliminal.cli.AgeParamType[source]¶ ParamTypefor age strings that returns atimedeltaAn age string is in the form number + identifier with possible identifiers:
wfor weeksdfor dayshfor hours
The form can be specified multiple times but only with that idenfier ordering. For example:
1w2d4hfor 1 week, 2 days and 4 hours2wfor 2 weeks3w6hfor 3 weeks and 6 hours