Commit graph

55 commits

Author SHA1 Message Date
084ff6e503
Fix time plugin 2024-10-05 18:30:42 +00:00
d99e0db019
Cleanup part 2 2024-10-05 18:04:32 +00:00
2d5041659f
Yeah yeah ok GPL I get it 2024-10-05 17:06:40 +00:00
88e5aed667
Cleanup part 1 2024-09-25 04:29:49 +00:00
92f5e1f47a
Add rudimentary support for specifications 2024-09-25 01:55:30 +00:00
0f3b523d68
Oops 2024-09-18 22:17:16 +01:00
f0f49cce18
Who let the bytecode out of the bag >:( 2024-09-14 18:01:06 +00:00
1a9001e956
Added a simple plugin validator 2024-09-14 17:56:10 +00:00
552146551c
Some reorganising 2024-09-14 16:56:57 +00:00
babba91ca2
Configuration directory abstraction 2024-09-10 23:27:19 +00:00
80057f151a
LICENSE bug 2024-09-10 22:57:31 +00:00
f627664244
Update examples 2024-09-10 15:11:20 +00:00
1ee3ea73e6
Reorganised package 2024-09-10 15:05:08 +00:00
12dbe87134
Add 'stdin' plugin. Allow flags to be empty (e.g. '-' and '--') 2024-09-09 18:34:23 +00:00
fb79537707
Added some basic validation 2024-09-09 18:19:50 +00:00
349a9cbd0e
SETUPTOOLS_SCM_PRETEND_VERSION my beloved?? 2024-09-09 17:14:35 +00:00
846a33a941
Flags are now configurable. Plugins no longer provide default short flags. 2024-09-09 05:47:02 +00:00
d95038a650
Updated README.md 2024-09-08 22:50:25 +00:00
6d549d27c5
Split 'result' plugin type into 'location' and 'feedback'
> 'location' plugins generate locations the resource can be accessed
> 'feedback' plugins present that location in some way that's useful to the human user

Also don't user relative imports in default plugins
2024-09-08 21:14:22 +00:00
6a310b8ca9
Added --config flag 2024-09-08 20:28:33 +00:00
10b5a80a09
Add PluginManager class and move logic from main => PluginManager or Plugin as appropriate 2024-09-08 20:12:20 +00:00
528115691a
Use __str__ to print plugin arguments 2024-09-04 17:53:01 +00:00
86380766ac
loggers => _loggers 2024-09-04 17:51:58 +00:00
a9fa15d643
Refactoring
- Flatten plugin module into Plugin class
- Move logger to its own class and rework it slightly
- Rename source and name to get_source and get_name since name() now clashes with the plugin name
2024-09-03 19:47:49 +00:00
00f3321230
Extract Plugin class and plugin loading from main.py 2024-09-02 21:33:11 +00:00
2a0b3dcb56
Removed antiquated dependency 2024-09-01 21:06:51 +00:00
fd32d625a8
Updated examples 2024-09-01 21:05:43 +00:00
34e0527daf
https://duckduckgo.com/?t=ffab&q=how+to+run+a+setuptools+project
Send help!
2024-09-01 21:05:43 +00:00
0140759c88
Move GNOME 42 Screenshot problem to issue 2024-08-31 21:43:46 +00:00
55115a2925
Added notification example plugin 2024-08-31 21:35:57 +00:00
7e3e713b0d
Several changes
- Plugin configurations are only validated if they are active
- Fixed issue with how Argument was passing it's paramateres to add_argument
- Added new plugin type 'result'
- Added inbuilt log_result plugin
- Added clipboard plugin
- Fix issue with misidentifying non-plugins in plugins directory as plugins
2024-08-31 19:56:48 +00:00
e6a42988c6
Added examples submodule 2024-08-31 18:50:28 +00:00
dd46dbc7b7
Modifications to arguments
- Arguments now use NoArgument instead of None to identify unset flags
- Arguments can now be optional and an activation flag using nargs="?" and const=Flag
2024-08-31 18:40:46 +00:00
987eddbf00
Arguments are working :fingers_crossed: 2024-08-31 18:25:53 +00:00
7b8fbf672b
Reorganised to use a plugin system 2024-08-31 05:43:30 +00:00
98c490dab9
Plugins are loading 2024-08-28 20:23:52 +00:00
72627995a7
Loaded a module :D 2024-08-28 16:56:05 +00:00
c1a455d7a4
Bump version 2024-08-28 06:43:21 +00:00
f6cc7033b8
Bump version 2024-08-01 18:18:50 +00:00
97ea9d1028
Convert ids to base 62 (shorter url) 2024-08-01 17:56:06 +00:00
ad63a98bdf
Configuration file fixes 2024-08-01 16:07:35 +00:00
82619349b0
Handle versioning manually (because setuptools_scm is mean and won't work with release tarballs ;-;) 2024-08-01 07:16:54 +00:00
11740120ac
Added documentation 2024-08-01 06:01:23 +00:00
86a75c4755
More config 2024-08-01 01:30:10 +00:00
aff77c5cc2
Now loads config file 2024-08-01 01:14:10 +00:00
709d99f729
Reworked arguments and then actually implemented them 2024-08-01 00:22:19 +00:00
cde4bffb0d
Fixed project versioning. Added some initial argument parsing. 2024-07-31 22:08:18 +00:00
a310c28a52
Moved to shiny new pyproject.toml from gross disgusting old setup.py 🤢 2024-07-31 20:19:23 +00:00
3641174c18
Now builds with setuptools. Add some extra printing. 2024-07-31 19:36:47 +00:00
ba53b71683
Add LICENSE 2024-07-31 18:29:03 +00:00