add system-update
This commit is contained in:
parent
a8e78d935c
commit
e509574472
2 changed files with 9 additions and 1 deletions
8
blend
8
blend
|
@ -382,6 +382,12 @@ def update_blends():
|
||||||
else:
|
else:
|
||||||
error(f'distribution {args.distro} is not supported')
|
error(f'distribution {args.distro} is not supported')
|
||||||
|
|
||||||
|
def system_update():
|
||||||
|
if args.noconfirm == True:
|
||||||
|
exit(subprocess.call(['sudo', '/usr/bin/pacman', '--noconfirm', '-Syu']))
|
||||||
|
else:
|
||||||
|
exit(subprocess.call(['sudo', '/usr/bin/pacman', '-Syu']))
|
||||||
|
|
||||||
def enter_container():
|
def enter_container():
|
||||||
if not distrobox_check_container(args.container_name):
|
if not distrobox_check_container(args.container_name):
|
||||||
distrobox_create_container()
|
distrobox_create_container()
|
||||||
|
@ -467,6 +473,7 @@ Here's a list of the supported desktop environments:
|
||||||
{colors.bold}search{colors.reset} Search for packages in a managed container.
|
{colors.bold}search{colors.reset} Search for packages in a managed container.
|
||||||
{colors.bold}show{colors.reset} Show details about a package.
|
{colors.bold}show{colors.reset} Show details about a package.
|
||||||
{colors.bold}update{colors.reset} Update all the packages in a managed container.
|
{colors.bold}update{colors.reset} Update all the packages in a managed container.
|
||||||
|
{colors.bold}system-update{colors.reset} Update all the system packages.
|
||||||
|
|
||||||
{colors.bold}{colors.fg.purple}options for commands{colors.reset}:
|
{colors.bold}{colors.fg.purple}options for commands{colors.reset}:
|
||||||
{colors.bold}-cn CONTAINER NAME, --container-name CONTAINER NAME{colors.reset}
|
{colors.bold}-cn CONTAINER NAME, --container-name CONTAINER NAME{colors.reset}
|
||||||
|
@ -493,6 +500,7 @@ command_map = { 'install': install_blend,
|
||||||
'start-containers': start_containers,
|
'start-containers': start_containers,
|
||||||
'sync': sync_blends,
|
'sync': sync_blends,
|
||||||
'update': update_blends,
|
'update': update_blends,
|
||||||
|
'system-update': system_update,
|
||||||
'export': export_blend,
|
'export': export_blend,
|
||||||
'unexport': unexport_blend,
|
'unexport': unexport_blend,
|
||||||
'search': search_blend,
|
'search': search_blend,
|
||||||
|
|
|
@ -7,7 +7,7 @@ _completions() {
|
||||||
|
|
||||||
if [[ "$COMP_CWORD" == 1 ]]; then
|
if [[ "$COMP_CWORD" == 1 ]]; then
|
||||||
SUGGESTIONS=('install' 'remove' 'update' 'show' 'search' 'enter' 'create-container' 'remove-container' \
|
SUGGESTIONS=('install' 'remove' 'update' 'show' 'search' 'enter' 'create-container' 'remove-container' \
|
||||||
'install-de' 'list-containers' 'start-containers' 'sync' 'help' 'version' 'export' 'unexport',
|
'install-de' 'list-containers' 'start-containers' 'sync' 'help' 'version' 'export' 'unexport' 'system-update' \
|
||||||
'--container-name=' '--distro=' '--noconfirm' '--version')
|
'--container-name=' '--distro=' '--noconfirm' '--version')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue