Skip to content

Commit 3cf14d5

Browse files
committed
Add initial 'ocd' command set
1 parent fe8cadb commit 3cf14d5

File tree

7 files changed

+13
-5
lines changed

7 files changed

+13
-5
lines changed

ocd/__main__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@
2424
from cliff.commandmanager import CommandManager
2525
from psec.exceptions import SecretNotFoundError
2626
from psec.secrets_environment import SecretsEnvironment
27-
from psec.utils import ( # pylint: disable=no-name-in-module
27+
from psec.utils import (
2828
bell,
29+
get_default_environment,
2930
show_current_value,
3031
Timer,
3132
)
@@ -284,3 +285,4 @@ def main(argv=None): # noqa
284285
sys.exit(main(argv=sys.argv[1:]))
285286

286287
# vim: set fileencoding=utf-8 ts=4 sw=4 tw=0 et :
288+

ocd/completions/create.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
# Local imports
1515
import openai
16-
from ocd.utils import ( # pylint: disable=no-name-in-module
16+
from ocd.utils import (
1717
Defaults,
1818
get_text_from_completion,
1919
ranged_type,
@@ -125,3 +125,4 @@ def take_action(self, parsed_args): # noqa
125125

126126

127127
# vim: set fileencoding=utf-8 ts=4 sw=4 tw=0 et :
128+

ocd/edits/create.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
# Local imports
1515
import openai
16-
from ocd.utils import ( # pylint: disable=no-name-in-module
16+
from ocd.utils import (
1717
Defaults,
1818
get_text_from_completion,
1919
ranged_type,
@@ -129,3 +129,4 @@ def take_action(self, parsed_args): # noqa
129129

130130

131131
# vim: set fileencoding=utf-8 ts=4 sw=4 tw=0 et :
132+

ocd/images/create.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# Local imports
1919
import openai
20-
from ocd.utils import ( # pylint: disable=no-name-in-module
20+
from ocd.utils import (
2121
Defaults,
2222
open_browser,
2323
ranged_type,
@@ -137,3 +137,4 @@ def take_action(self, parsed_args): # noqa
137137

138138

139139
# vim: set fileencoding=utf-8 ts=4 sw=4 tw=0 et :
140+

ocd/models/list.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,4 @@ def take_action(self, parsed_args): # noqa
7878

7979

8080
# vim: set fileencoding=utf-8 ts=4 sw=4 tw=0 et :
81+

ocd/models/overview.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def get_parser(self, prog_name):
3131
parser.epilog = BROWSER_EPILOG
3232
return parser
3333

34-
def take_action(self, _):
34+
def take_action(self, parsed_args): # noqa
3535
page = f'{self.app.openai_docs_base}/models/overview'
3636
open_browser(
3737
page=page,
@@ -43,3 +43,4 @@ def take_action(self, _):
4343

4444

4545
# vim: set fileencoding=utf-8 ts=4 sw=4 tw=0 et :
46+

ocd/utils/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,3 +233,4 @@ class Defaults():
233233

234234

235235
# vim: set fileencoding=utf-8 ts=4 sw=4 tw=0 et :
236+

0 commit comments

Comments
 (0)