-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added more examples to examples folder
- Loading branch information
1 parent
e2d3206
commit c0cdf7b
Showing
24 changed files
with
310 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,3 +60,4 @@ target/ | |
|
||
/manage.yml | ||
/.manage.yml | ||
/.bck_manage.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
click_commands: | ||
- module: my_system.user | ||
config: | ||
create_user: | ||
name: new_user | ||
help_text: New user will be created | ||
- module: my_system.group | ||
config: | ||
create_group: | ||
name: new_group | ||
help_text: New group will be created | ||
help_text: This is the {project_name} interactive shell | ||
project_name: Custom Named Commands | ||
shell: | ||
auto_import: | ||
display: true | ||
objects: {} | ||
banner: | ||
enabled: true | ||
message: Manage Interactive Shell! edit your `manage.yml` | ||
init_script: print("Starting interactive shell!") | ||
readline_enabled: true |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# coding: utf-8 | ||
|
||
import click | ||
|
||
|
||
@click.command() | ||
@click.option('--name') | ||
def create_group(name): | ||
"""Create a new group""" | ||
click.echo('Creating the group %s' % name) | ||
|
||
|
||
def this_is_not_command(foo, bar): | ||
"""Will not be added""" | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# coding: utf-8 | ||
|
||
import click | ||
|
||
|
||
@click.command() | ||
@click.option('--name') | ||
@click.option('--passwd') | ||
def create_user(name, passwd): | ||
"""Create a new user""" | ||
click.echo('Creating the user %s' % name) | ||
|
||
|
||
def this_is_not_command(foo, bar): | ||
"""Will not be added""" | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
click_commands: | ||
- module: my_system.user | ||
namespace: bar | ||
- module: my_system.group | ||
namespace: foo | ||
config: | ||
create_group: | ||
name: new_group | ||
help_text: New group will be created | ||
help_text: This is the {project_name} interactive shell | ||
project_name: Custom Named Commands | ||
shell: | ||
auto_import: | ||
display: true | ||
objects: {} | ||
banner: | ||
enabled: true | ||
message: Manage Interactive Shell! edit your `manage.yml` | ||
init_script: print("Starting interactive shell!") | ||
readline_enabled: true |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# coding: utf-8 | ||
|
||
import click | ||
|
||
|
||
@click.command() | ||
@click.option('--name') | ||
def create_group(name): | ||
"""Create a new group""" | ||
click.echo('Creating the group %s' % name) | ||
|
||
|
||
def this_is_not_command(foo, bar): | ||
"""Will not be added""" | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# coding: utf-8 | ||
|
||
import click | ||
|
||
|
||
@click.command() | ||
@click.option('--name') | ||
@click.option('--passwd') | ||
def create_user(name, passwd): | ||
"""Create a new user""" | ||
click.echo('Creating the user %s' % name) | ||
|
||
|
||
def this_is_not_command(foo, bar): | ||
"""Will not be added""" | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
commands: | ||
- module: my_system | ||
help_text: This is the {project_name} interactive shell | ||
project_name: Multiple With Commands | ||
shell: | ||
auto_import: | ||
display: true | ||
objects: {} | ||
banner: | ||
enabled: true | ||
message: Manage Interactive Shell! edit your `manage.yml` | ||
init_script: print("Starting interactive shell!") | ||
readline_enabled: true |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# coding: utf-8 | ||
|
||
import click | ||
|
||
|
||
@click.command() | ||
@click.option('--name') | ||
def create_group(name): | ||
"""Create a new group""" | ||
click.echo('Creating the group %s' % name) | ||
|
||
|
||
def this_is_not_command(foo, bar): | ||
"""Will not be added""" | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# coding: utf-8 | ||
|
||
import click | ||
|
||
|
||
@click.command() | ||
@click.option('--name') | ||
@click.option('--passwd') | ||
def create_user(name, passwd): | ||
"""Create a new user""" | ||
click.echo('Creating the user %s' % name) | ||
|
||
|
||
def this_is_not_command(foo, bar): | ||
"""Will not be added""" | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
namespaced: true | ||
click_commands: | ||
- module: my_system.user | ||
- module: my_system.group | ||
config: | ||
create_group: | ||
name: new_group | ||
help_text: New group will be created | ||
help_text: This is the {project_name} interactive shell | ||
project_name: namespaced Commands | ||
shell: | ||
auto_import: | ||
display: true | ||
objects: {} | ||
banner: | ||
enabled: true | ||
message: Manage Interactive Shell! edit your `manage.yml` | ||
init_script: print("Starting interactive shell!") | ||
readline_enabled: true |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# coding: utf-8 | ||
|
||
import click | ||
|
||
|
||
@click.command() | ||
@click.option('--name') | ||
def create_group(name): | ||
"""Create a new group""" | ||
click.echo('Creating the group %s' % name) | ||
|
||
|
||
def this_is_not_command(foo, bar): | ||
"""Will not be added""" | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# coding: utf-8 | ||
|
||
import click | ||
|
||
|
||
@click.command() | ||
@click.option('--name') | ||
@click.option('--passwd') | ||
def create_user(name, passwd): | ||
"""Create a new user""" | ||
click.echo('Creating the user %s' % name) | ||
|
||
|
||
def this_is_not_command(foo, bar): | ||
"""Will not be added""" | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
commands: | ||
- module: my_system.commands | ||
help_text: This is the {project_name} interactive shell | ||
project_name: Simple With Commands | ||
shell: | ||
auto_import: | ||
display: true | ||
objects: {} | ||
banner: | ||
enabled: true | ||
message: Manage Interactive Shell! edit your `manage.yml` | ||
init_script: print("Starting interactive shell!") | ||
readline_enabled: true |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# coding: utf-8 | ||
|
||
import click | ||
|
||
|
||
@click.command() | ||
@click.option('--name') | ||
@click.option('--passwd') | ||
def create_user(name, passwd): | ||
"""Create a new user""" | ||
click.echo('Creating the user %s' % name) | ||
|
||
|
||
@click.command() | ||
@click.option('--name') | ||
def create_group(name): | ||
"""Create a new group""" | ||
click.echo('Creating the group %s' % name) | ||
|
||
|
||
def this_is_not_command(foo, bar): | ||
"""Will not be added""" | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.