robotcode 0.28.2__py3-none-any.whl → 0.28.4__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
robotcode/cli/__init__.py CHANGED
@@ -1,4 +1,5 @@
1
1
  from pathlib import Path
2
+ from typing import Optional
2
3
 
3
4
  import click
4
5
 
@@ -17,7 +18,7 @@ from .__version__ import __version__
17
18
  )
18
19
  @click.option("-d", "--dry", is_flag=True, help="Dry run, do not execute any commands.")
19
20
  @click.pass_context
20
- def robotcode(ctx: click.Context) -> None:
21
+ def robotcode(ctx: click.Context, config_file: Optional[Path], dry: Optional[bool] = None) -> None:
21
22
  """\b
22
23
  _____ _ _ _____ _
23
24
  | __ \\ | | | | / ____| | |
@@ -27,8 +28,32 @@ def robotcode(ctx: click.Context) -> None:
27
28
  |_| \\_\\___/|_.__/ \\___/ \\__|\\_____\\___/ \\__,_|\\___|
28
29
 
29
30
  """
31
+ ctx.ensure_object(dict)
32
+ ctx.obj["config_file"] = config_file
33
+ ctx.obj["dry"] = dry
30
34
 
31
35
 
32
36
  for p in PluginManager().cli_commands:
33
37
  for c in p:
34
38
  robotcode.add_command(c)
39
+
40
+
41
+ @robotcode.command()
42
+ @click.pass_context
43
+ def debug(ctx: click.Context) -> None:
44
+ """Debug the robotframework run."""
45
+ click.echo("TODO")
46
+
47
+
48
+ @robotcode.command()
49
+ @click.pass_context
50
+ def clean(ctx: click.Context) -> None:
51
+ """Clean the robotframework project."""
52
+ click.echo("TODO")
53
+
54
+
55
+ @robotcode.command()
56
+ @click.pass_context
57
+ def new(ctx: click.Context) -> None:
58
+ """Create a new robotframework project."""
59
+ click.echo("TODO")
@@ -1 +1 @@
1
- __version__ = "0.28.2"
1
+ __version__ = "0.28.4"
@@ -1,7 +1,8 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: robotcode
3
- Version: 0.28.2
3
+ Version: 0.28.4
4
4
  Summary: Language server, debugger and tools for Robot Framework
5
+ Project-URL: Homepage, https://robotcode.io
5
6
  Project-URL: Donate, https://github.com/sponsors/d-biehl
6
7
  Project-URL: Documentation, https://github.com/d-biehl/robotcode#readme
7
8
  Project-URL: Changelog, https://github.com/d-biehl/robotcode/blob/main/CHANGELOG.md
@@ -33,6 +34,8 @@ Classifier: Topic :: Utilities
33
34
  Classifier: Typing :: Typed
34
35
  Requires-Python: >=3.8
35
36
  Requires-Dist: robotcode-plugin
37
+ Provides-Extra: analyze
38
+ Requires-Dist: robotcode-analyze; extra == 'analyze'
36
39
  Provides-Extra: debugger
37
40
  Requires-Dist: robotcode-debugger; extra == 'debugger'
38
41
  Provides-Extra: language-server
@@ -110,7 +113,7 @@ Autocompletion for:
110
113
  - Keywords with parameters
111
114
  - Namespaces
112
115
 
113
- ![Autocomplete Libraries and Keywords](./doc/images/autocomplete1.gif)
116
+ ![Autocomplete Libraries and Keywords](./docs/images/autocomplete1.gif)
114
117
 
115
118
  Autocompletion supports all supported variables types
116
119
  - local variables
@@ -120,7 +123,7 @@ Autocompletion supports all supported variables types
120
123
  - command line variables
121
124
  - builtin variables
122
125
 
123
- ![Autocomplete Variables](./doc/images/autocomplete2.gif)
126
+ ![Autocomplete Variables](./docs/images/autocomplete2.gif)
124
127
 
125
128
  ### Code Navigation
126
129
 
@@ -163,7 +166,7 @@ RobotCode can format your code with the internal RobotFramework robot.tidy tool
163
166
 
164
167
  RobotCode supports running and debugging of RobotFramework testcases and tasks out of the box, directly from the definition of the test or suite.
165
168
 
166
- ![Running Tests](./doc/images/running_tests.gif)
169
+ ![Running Tests](./docs/images/running_tests.gif)
167
170
 
168
171
  In the debug console you can see all log messages of the current run and navigate to the keyword the message was written by.
169
172
 
@@ -217,7 +220,7 @@ See the difference:
217
220
 
218
221
  | Before | After |
219
222
  | ---------------------------------------------------------------- | ---------------------------------------------------------- |
220
- | ![Without customization](./doc/images/without_customization.gif) | ![With customization](./doc/images/with_customization.gif) |
223
+ | ![Without customization](./docs/images/without_customization.gif) | ![With customization](./docs/images/with_customization.gif) |
221
224
 
222
225
 
223
226
  As a template you can put the following code to your user settings of VSCode.
@@ -0,0 +1,9 @@
1
+ robotcode/cli/__init__.py,sha256=kR71t2tD9vni5-ShjJ6vw3uY2kVhPx2KR6LxIGg3HtU,1634
2
+ robotcode/cli/__main__.py,sha256=zG50eZEeKrg1eQXKX_STT2y8R-3Rj85nfqu37pkhpcM,94
3
+ robotcode/cli/__version__.py,sha256=le8GUWDg2-I-aN9BEcWW_cGqOJzU27CUKxY6F59kr5k,23
4
+ robotcode/cli/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
5
+ robotcode-0.28.4.dist-info/METADATA,sha256=mTOwdukk78ydhQZ0FfMx6PJXT-2StOjipQsBaWPPVTk,12564
6
+ robotcode-0.28.4.dist-info/WHEEL,sha256=Fd6mP6ydyRguakwUJ05oBE7fh2IPxgtDN9IwHJ9OqJQ,87
7
+ robotcode-0.28.4.dist-info/entry_points.txt,sha256=ZZlsDPn9_AMQMQ22KZ0IOz7cpDfMFAfpxE7Ul7Cc3Lk,54
8
+ robotcode-0.28.4.dist-info/licenses/LICENSE.txt,sha256=B05uMshqTA74s-0ltyHKI6yoPfJ3zYgQbvcXfDVGFf8,10280
9
+ robotcode-0.28.4.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- robotcode/cli/__init__.py,sha256=osxez4fO5mx7CEDxi0_lW6_SPCLe3WFl177nz2tmACw,1011
2
- robotcode/cli/__main__.py,sha256=zG50eZEeKrg1eQXKX_STT2y8R-3Rj85nfqu37pkhpcM,94
3
- robotcode/cli/__version__.py,sha256=K-TM2fq9AmH_Dk8Cadam72wILDZ_6qftLHvY9P1Fc3I,23
4
- robotcode/cli/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
5
- robotcode-0.28.2.dist-info/METADATA,sha256=sZIgJ1m_gDA3ZcUddPCcIzphJLeAr12rO-6DlXRssWM,12438
6
- robotcode-0.28.2.dist-info/WHEEL,sha256=Fd6mP6ydyRguakwUJ05oBE7fh2IPxgtDN9IwHJ9OqJQ,87
7
- robotcode-0.28.2.dist-info/entry_points.txt,sha256=ZZlsDPn9_AMQMQ22KZ0IOz7cpDfMFAfpxE7Ul7Cc3Lk,54
8
- robotcode-0.28.2.dist-info/licenses/LICENSE.txt,sha256=B05uMshqTA74s-0ltyHKI6yoPfJ3zYgQbvcXfDVGFf8,10280
9
- robotcode-0.28.2.dist-info/RECORD,,