mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Implemented new css scheme
This commit is contained in:
1
lookup_plugins/__init__.py
Normal file
1
lookup_plugins/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -1,9 +1,9 @@
|
||||
from ansible.plugins.lookup import LookupBase
|
||||
from colorscheme_generator import generate_full_palette
|
||||
|
||||
class LookupModule(object):
|
||||
class LookupModule(LookupBase):
|
||||
def run(self, terms, variables=None, **kwargs):
|
||||
base_color = terms[0]
|
||||
count = kwargs.get('count', 100)
|
||||
shades = kwargs.get('shades', True)
|
||||
|
||||
return [generate_full_palette(base_color, count=count, shades=shades)]
|
||||
count = kwargs.get('count')
|
||||
shades = kwargs.get('shades')
|
||||
return [generate_full_palette(base_color, count=count, shades=shades)]
|
||||
|
Reference in New Issue
Block a user