Skip to content

Commit

Permalink
add notes app plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxwagner committed Oct 30, 2023
1 parent 675d550 commit 546f188
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions jarviscli/plugins/notes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import os
from colorama import Fore
from plugin import plugin, require, LINUX, MACOS

@require(native="gedit", platform=LINUX)
@plugin('open notes')
def open_notes__LINUX(jarvis, s):
"""Jarvis will open the notes application for you."""
jarvis.say("Opening notes.......", Fore.GREEN)
os.system("gedit")

@require(platform=MACOS)
@plugin('open notes')
def open_notes__MAC(jarvis, s):
"""Jarvis will open the Notes app for you."""
jarvis.say("Opening Notes.......", Fore.GREEN)
os.system('open /Applications/Notes.app')

0 comments on commit 546f188

Please sign in to comment.