Passed
Push — main ( 733392...9d7d1d )
by Jace
01:01
created

slackoff.slack.close()   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
nop 0
1
from pathlib import Path
2
3
from . import script
4
5
FUNCTIONS = Path(__file__).parent / "slack.applescript"
6
7
8
def activate() -> bool:
9
    return script.call(FUNCTIONS, "activate()")
10
11
12
def signin(workspace: str) -> bool:
13
    return script.call(FUNCTIONS, f'signin("{workspace}")')
14
15
16
def signout(workspace: str) -> bool:
17
    return script.call(FUNCTIONS, f'signout("{workspace}")', show_error=False)
18