From a187752c824b47052d33d3bc12749b5a7d2e8191 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 1 Jun 2023 19:35:59 -0700 Subject: 🤡 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I06b104d79deac199f9cd9cdae705e333d23cc852 --- snippets/python-mode/cli | 15 +++++++++++++++ snippets/python-mode/function | 6 ++++++ snippets/python-mode/main | 9 +++++++++ 3 files changed, 30 insertions(+) create mode 100644 snippets/python-mode/cli create mode 100644 snippets/python-mode/function create mode 100644 snippets/python-mode/main (limited to 'snippets/python-mode') diff --git a/snippets/python-mode/cli b/snippets/python-mode/cli new file mode 100644 index 0000000..f5e9503 --- /dev/null +++ b/snippets/python-mode/cli @@ -0,0 +1,15 @@ +# -*- mode: snippet -*- +# name: cli +# key: cli +# -- +import click + + +@click.command() +@click.version_option() +def cli(): + pass + + +if __name__ == "__main__": + cli() \ No newline at end of file diff --git a/snippets/python-mode/function b/snippets/python-mode/function new file mode 100644 index 0000000..ffde801 --- /dev/null +++ b/snippets/python-mode/function @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: function +# key: fn +# -- +def $1($2): + $3 \ No newline at end of file diff --git a/snippets/python-mode/main b/snippets/python-mode/main new file mode 100644 index 0000000..b1564a8 --- /dev/null +++ b/snippets/python-mode/main @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: main +# key: main +# -- +def main(): + pass + +if __name__ == "__main__": + main() \ No newline at end of file -- cgit 1.4.1