Commit 54472431 authored by Boris Glimcher's avatar Boris Glimcher Committed by Tomasz Zawadzki
Browse files

python/cli: moved all cli code from scripts to python package



This allows futher split into files to match components.
This is easier to maintain.

Change-Id: I93b76f63fd01de46b3aa0814c518d511224a016e
Signed-off-by: default avatarBoris Glimcher <Boris.Glimcher@emc.com>
Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/26134


Tested-by: default avatarSPDK Automated Test System <spdkbot@gmail.com>
Reviewed-by: default avatarJim Harris <jim.harris@nvidia.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarKonrad Sztyber <ksztyber@nvidia.com>
parent 241ce66d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2,6 +2,10 @@

## v25.09: (Upcoming Release)

### python

Moved all cli code inside the python package for easier genration and packaging.

### sock

Simplified spdk_sock_[listen|connect] impl_name handling. Previously, if NULL was provided and the
+2 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2025 Dell Inc, or its subsidiaries.  All rights reserved.
+3893 −0

File added.

Preview size limit exceeded, changes collapsed.

+9 −0
Original line number Diff line number Diff line
@@ -10,6 +10,15 @@ import logging
import copy
import ctypes

try:
    from shlex import quote
except ImportError:
    from pipes import quote


def print_array(a):
    print(" ".join((quote(v) for v in a)))


def print_dict(d):
    print(json.dumps(d, indent=2))
+1 −1
Original line number Diff line number Diff line
@@ -722,7 +722,7 @@ function check_changelog() {
	needs_changelog=0
	if [ $has_changelog -eq 0 ]; then
		for f in $files; do
			if [[ $f == include/spdk/* ]] || [[ $f == scripts/rpc.py ]] || [[ $f == etc/* ]]; then
			if [[ $f == include/spdk/* ]] || [[ $f == python/spdk/cli/* ]] || [[ $f == scripts/rpc.py ]] || [[ $f == etc/* ]]; then
				echo ""
				echo -n "$f was modified. Consider updating CHANGELOG.md."
				needs_changelog=1
Loading