Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply the changes brought by hugsy/gef#839 #62

Merged
merged 17 commits into from
Jun 19, 2022
Merged
18 changes: 11 additions & 7 deletions scripts/TEMPLATE
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,21 @@ Describe thoroughly what your command does. In addition, complete the documentat
in /docs/ and adding the reference in /mkdocs.yml
"""

__AUTHOR__ = "your_name"
__VERSION__ = 0.1
__LICENSE__ = "MIT"
__AUTHOR__ = "your_name"
__VERSION__ = 0.1
__LICENSE__ = "MIT"

from typing import TYPE_CHECKING, List

if TYPE_CHECKING:
from . import * # this will allow linting for GEF and GDB


@register
class MyCommand(GenericCommand):
"""Template of a new command."""
_cmdline_ = "my-command"
_syntax_ = "{:s}".format(_cmdline_)
_syntax_ = "{:s}".format(_cmdline_)

def do_invoke(self, argv):
def do_invoke(self, argv: List[str]):
return

register(MyCommand)
Empty file added scripts/__init__.py
Empty file.
Loading