Commit 111a22aa authored by David Seaward's avatar David Seaward
Browse files

Stub for files integration.


Signed-off-by: David Seaward's avatarDavid Seaward <david.seaward@puri.sm>
parent 07a44b74
......@@ -5,6 +5,7 @@ name = "pypi"
[packages]
click = ">=6.0,<7.0"
sh = ">=1.12.14,<1.13.0"
[requires]
python_version = "3.7"
......
{
"_meta": {
"hash": {
"sha256": "03200d794b21b245fec55de0d5f3761fea0e846c95aac1b0ef3aa010cf3375dd"
"sha256": "f6a47165359f01b264a1357826ec33f3a488f679539c5fa1e5afe94af9661f77"
},
"pipfile-spec": 6,
"requires": {
......@@ -23,9 +23,31 @@
],
"index": "pypi",
"version": "==6.7"
},
"sh": {
"hashes": [
"sha256:ae3258c5249493cebe73cb4e18253a41ed69262484bad36fdb3efcb8ad8870bb",
"sha256:b52bf5833ed01c7b5c5fb73a7f71b3d98d48e9b9b8764236237bdc7ecae850fc"
],
"index": "pypi",
"version": "==1.12.14"
}
},
"develop": {
"certifi": {
"hashes": [
"sha256:017c25db2a153ce562900032d5bc68e9f191e44e9a0f762f373977de9df1fbb3",
"sha256:25b64c7da4cd7479594d035c08c2d809eb4aab3a26e5a990ea98cc450c320f1f"
],
"version": "==2019.11.28"
},
"chardet": {
"hashes": [
"sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae",
"sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691"
],
"version": "==3.0.4"
},
"click": {
"hashes": [
"sha256:29f99fc6125fbc931b758dc053b3114e55c77a6e4c6c3a2674a2dc986016381d",
......@@ -37,6 +59,47 @@
"e1839a8": {
"editable": true,
"path": "."
},
"idna": {
"hashes": [
"sha256:c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407",
"sha256:ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c"
],
"version": "==2.8"
},
"pycairo": {
"hashes": [
"sha256:2c143183280feb67f5beb4e543fd49990c28e7df427301ede04fc550d3562e84"
],
"version": "==1.19.1"
},
"pygobject": {
"hashes": [
"sha256:2acb0daf2b3a23a90f52066cc23d1053339fee2f5f7f4275f8baa3704ae0c543"
],
"version": "==3.34.0"
},
"requests": {
"hashes": [
"sha256:11e007a8a2aa0323f5a921e9e6a2d7e4e67d9877e85773fba9ba6419025cbeb4",
"sha256:9cf5292fcd0f598c671cfc1e0d7d1a7f13bb8085e9a590f48c010551dc6c4b31"
],
"version": "==2.22.0"
},
"sh": {
"hashes": [
"sha256:ae3258c5249493cebe73cb4e18253a41ed69262484bad36fdb3efcb8ad8870bb",
"sha256:b52bf5833ed01c7b5c5fb73a7f71b3d98d48e9b9b8764236237bdc7ecae850fc"
],
"index": "pypi",
"version": "==1.12.14"
},
"urllib3": {
"hashes": [
"sha256:2f3db8b19923a873b3e5256dc9c2dedfa883e33d87c690d9c7913e1f40673cdc",
"sha256:87716c2d2a7121198ebcb7ce7cccf6ce5e9ba539041cfbaeecfb641dc0bf6acc"
],
"version": "==1.25.8"
}
}
}
import click
from scripts.nm_tunnel_setup import nm_tunnel_setup
from scripts.nautilus_files_setup import nautilus_files_setup
@click.group()
......@@ -7,13 +8,13 @@ def cli():
pass
@cli.command()
def hello():
"""Example script."""
click.echo('Hello World!')
@cli.command()
def tunnel_setup():
"""Add tunnel config to NetworkManager"""
nm_tunnel_setup()
@cli.command()
def files_setup():
"""Create mountpoint for files."""
nautilus_files_setup()
#!/usr/bin/env python3
# Copyright 2017-2019 Purism SPC
# SPDX-License-Identifier: AGPL-3.0-or-later
import sh
def nautilus_files_setup():
print(sh.echo("Work in progress"))
......@@ -4,8 +4,8 @@ version = 0.0.2
description = Liberty CLI is a user-facing command-line client for interacting with a Liberty Deckplan Host (LDH).
license = AGPL-3.0-or-later
author = Purism SPC
author_email = liberty@puri.sm
url = https://source.puri.sm/liberty/ldh_client
author_email = doublerainbows@librem.one
url = https://source.puri.sm/liberty/tool/client
classifiers =
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
......@@ -18,7 +18,8 @@ install_requires =
click>=6.7
PyGObject>=3.32.0
requests>=2.21.0
sh>=1.12.14
[options.entry_points]
console_scripts =
liberty = scripts.liberty:cli
\ No newline at end of file
liberty = scripts.liberty:cli
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment