Skip to content

Commit 0e0f989

Browse files
committed
Renaming command to be GenerateHelloCommand in order to make room for other commands like StreamHelloCommand, etc
1 parent 7e78c6e commit 0e0f989

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

examples/searchcommands_app/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This app provides several examples of custom search commands which illustrate ea
55

66
Command | Type | Description
77
:------------ |:-----------|:----------------------------------------------------
8-
helloworld | Generating | Generates a specified number of 'Hello World' events
8+
generatehello| Generating | Generates a specified number of 'Hello World' events
99
simulate | Generating | Generates a sequence of events drawn from a csv file using repeated random sampling with replacement
1010
sum | Reporting | Adds all the numbers in a set of fields.
1111
countmatches | Streaming | Counts the number of non-overlapping matches to a regular expression in a set of fields.
@@ -19,7 +19,7 @@ The app is tested on Splunk 5 and 6. Here is its manifest:
1919
│ ├── simulate.py .............. SimulateCommand implementation
2020
│ ├── sum.py ................... SumCommand implementation
2121
│   ├── countmatches.py .......... CountMatchesCommand implementation
22-
│   └── hellowowrld.py ........... HelloWorldCommand implementation
22+
│   └── generatehello.py ........... HelloWorldCommand implementation
2323
├── default
2424
│ ├── data
2525
│ │   └── ui
File renamed without changes.

examples/searchcommands_app/default/commands.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ supports_rawargs = true
2525
outputheader = true
2626
requires_srinfo = true
2727

28-
[helloworld]
29-
filename = helloworld.py
28+
[generatehello]
29+
filename = generatehello.py
3030
supports_getinfo = true
3131
supports_rawargs = true
3232

examples/searchcommands_app/default/logging.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ level = NOTSET ; Default: WARNING
2828
handlers = file ; Default: stderr
2929
propagate = 0 ; Default: 1
3030

31-
[logger_HelloWorldCommand]
32-
qualname = HelloWorldCommand
31+
[logger_GenerateHelloCommand]
32+
qualname = GenerateHelloCommand
3333
level = NOTSET ; Default: WARNING
3434
handlers = file ; Default: stderr
3535
propagate = 0 ; Default: 1

examples/searchcommands_app/default/searchbnf.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ usage = public
4444
related = inputcsv
4545
tags = searchcommands_app
4646

47-
[helloworld-command]
48-
syntax = helloworld count=<count>
47+
[generatehello-command]
48+
syntax = generatehello count=<count>
4949
alias =
5050
shortdesc = Creates a set of 'Hello World' events
5151
description = This command creates a specified number of dummy events
5252
comment1 = This example generates 5 events
53-
example1 = | helloworld count=5
53+
example1 = | generatehello count=5
5454
category = generating
5555
appears-in = 5.0
5656
maintainer = gblock

0 commit comments

Comments
 (0)