forked from Mirror/pmbootstrap
commands: move shutdown command to pmb/commands (MR 2252)
Another one bites the dust Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
a99ae02068
commit
656ff3f5bb
3 changed files with 17 additions and 5 deletions
14
pmb/commands/shutdown.py
Normal file
14
pmb/commands/shutdown.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
# Copyright 2024 Caleb Connolly
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
from __future__ import annotations
|
||||
from pmb import commands
|
||||
import pmb.chroot
|
||||
|
||||
class Shutdown(commands.Command):
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
def run(self):
|
||||
pmb.chroot.shutdown()
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue