apache/pulsar

pulsar-shell persistent modes

开放

#21,194 创建于 2023年9月16日

 (1 条评论) (0 个反应) (0 位负责人)Java (3,485 个派生)batch import
Stalehelp wantedtype/enhancement

仓库指标

星标
 (13,697 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Search before asking

  • I searched in the issues and found nothing similar.

Motivation

Using pulsar-shell interactively, it's kind of a pain to prefix everything withadmin. I think it would be nice if the command accepted admin and client on their own as special commands that put the command into that mode with an implicit prefix.

Solution

Allow admin and client, when passed on their own to enter into admin or client mode respectively, with the addition of one more command exitmode to return to the base state. These modes would not persist between sessions.

configname(hostname)> admin
configname(hostname) admin> help
Usage: pulsar-admin [options] [command] [command options]
  Options:
    --admin-url
      Admin Service URL to which to connect.
      Default: https://pulsar.eks.intel.cs.sys:443
<SNIP>
    namespaces      Operations about namespaces
      Usage: namespaces [options]

configname(hostname) admin> exitmode
configname(hostname)>

Alternatives

No response

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

贡献者指南