c8y(1)
π
c8y(1) β the c8y girlies' field guide π
okay so bestie, this is c8y(1), like the whole command line tool β and this page right here? it's all about the assert text glow-up β¨ c8y-assert-text is the name on the birth certificate, and its whole job is literally just Assert text. that's it, that's the vibe. π
β¨ NAME β¨
c8y-assert-text β assert text, bestie. no cap, that's what it does. π¦
πΈ SYNOPSIS πΈ
c8y assert text [flags]
π DESCRIPTION π
it asserts text input. like, you give it text, it checks the text, and it tells you if your text is giving what it's supposed to give. simple. iconic. periodt. π₯
π OPTIONS π
--exact=""β match the text exactly, character for character. it's case sensitive, so don't come at it with your lowercase when it asked for uppercase, ok? π-h,--help[=false]β help fortext. your little emotional support flag when you're lost. π«Ά--input=""β the input value to be repeated. this one is required (!!), and yes it accepts pipeline, so you can pipe stuff straight in. π--regex=""β match against a regular expression. also case sensitive, regex girlies stay winning. β--schema=""β match against a json schema. for the structured-data girlies who need β¨validationβ¨.--strict[=false]β strict mode. fail if no match is found. it's giving "no match? we're not doing that here." π
π OPTIONS INHERITED FROM PARENT COMMANDS π
these are the family flags β inherited, but still main character energy fr fr.
--abortOnErrors=10β abort the batch when you hit the specified number of errors. default is10, so you get ten strikes before it's over. π--allowEmptyPipe[=false]β don't fail when the piped input (stdin) is empty. like, let the girl breathe. π§--cache[=false]β enable cached responses. speed. β‘--cacheBodyPaths=[]β cache should limit hashing of selected paths in the json body. an empty value indicates all values. π--cacheTTL="60s"β cache time-to-live (TTL) as a duration, i.e.60s,2m. default60s. πΈ-c,--compact[=false]β compact instead of pretty-printed output when using json output. lowkey important: pretty print is the default if output is the terminal. β¨--confirm[=false]β prompt for confirmation. consent is key, bestie. π«Ά--confirmText=""β custom confirmation text. make it say whatever you want. π--currentPage=0β current page which should be returned. π--customQueryParam=[]β add custom URL query parameters, i.e.--customQueryParam 'withCustomOption=true,myOtherOption=myvalue'. π--debug[=false]β set very verbose log messages. strap in, she's gonna talk. π--delay="0ms"β delay after each request, i.e.5ms,1.2s. default0ms. β³--delayBefore="0ms"β delay before each request, i.e.5ms,1.2s. default0ms. β³--dry[=false]β dry run. don't send any data to the server. dress rehearsal only, no actual performance. π--dryFormat="markdown"β dry run output format, i.e.json,dump,markdownorcurl. defaultmarkdown. π--examples[=false]β show examples for the current command. yes bestie, there are examples, scroll down babe. π--filter=[]β apply a client side filter to the response before returning it to the user. sift that tea. π΅--flatten[=false]β flatten json output by replacing nested json properties with properties where their names are represented by dot notation. nested? not anymore. π¦-f,--force[=false]β do not prompt for confirmation. ignored when using--confirm. β οΈ-H,--header=[]β custom headers, i.e.--header "Accept: value, AnotherHeader: myvalue". π--includeAll[=false]β include all results by iterating through each page. all of it. every crumb. πͺ-k,--insecure[=false]β allow insecure server connections when using SSL. β οΈ yes she said it, she's being insecure on purpose, use with care bestie.-l,--logMessage=""β add custom message to the activity log. leave a lil note for the group chat. π--maxJobs=0β maximum number of jobs.0= unlimited (use with caution!). π¨--noAccept[=false]β ignore Accept header will remove the Accept header from requests, howeverPUTandPOSTrequests will only see the effect. π€--noCache[=false]β force disabling of cached responses (overwrites cache setting). π₯-M,--noColor[=false]β don't use colors when displaying log entries on the console. monochrome moment. π€--noLog[=false]β disables the activity log for the current command. π€«--noProgress[=false]β disable progress bars. no lil bars, just vibes. π«--noProxy[=false]β ignore the proxy settings. π-n,--nullInput[=false]β don't read the input (stdin). useful if using in shellfor/whileloops. π-o,--output="table"β output format, i.e.table,json,csv,csvheader. defaulttable. π--outputFile=""β save JSON output to file (after select/view). πΎ--outputFileRaw=""β save raw response to file (before select/view). πΎ--outputTemplate=""β jsonnet template to apply to the output. fancy. β¨-p,--pageSize=5β maximum results per page. default5. π--progress[=false]β show progress bar. heads up though: this will also disable any other verbose output. β οΈ--proxy=""β proxy setting, i.e.http://10.0.0.1:8080. π-r,--raw[=false]β show raw response. this mode will forceoutput=jsonandview=off. no filter, no fuss. πͺ--retries=3β max number of attempts when a failed http call is encountered. default3. she tries, ok? she tries. π€--select=[]β comma separated list of properties to return. wildcards and globstar accepted, i.e.--select 'id,name,type,**.serialNumber'. π―--session=""β session configuration. π--sessionMode=""β override default session mode for a single command which would normally be disabled. πΌ-P,--sessionPassword=""β override session password. π€-U,--sessionUsername=""β override session username, i.e.peterort1234/peter(with tenant). π§βπ»--silentExit[=false]β silent status codes do not affect the exit code. π--silentStatusCodes=""β status codes which will not print out an error message. π€--timeout="600s"β request timeout duration, i.e.60s,2m. default600s. β°--totalPages=0β total number of pages to get. π-v,--verbose[=false]β verbose logging. she's telling you everything. π£οΈ--view="auto"β use views when displaying data on the terminal. disable using--view off. πΌοΈ--withError[=false]β errors will be printed on stdout instead of stderr. π--withTotalElements[=false]β request Cumulocity to include the total elements in the response statistics under.statistics.totalElements(introduced in10.13). π’-t,--withTotalPages[=false]β request Cumulocity to include the total pages in the response statistics under.statistics.totalPages. π--workers=1β number of workers. default1. π―
π EXAMPLE π
assert that the input matches a given schema π§
$ echo "{\"name\": \"device01\"}" | c8y assert text --schema "myschema.json"
assert that the input text matches a given string exactly (case sensitive) π
$ echo "myname" | c8y assert text --exact "myname"
assert that the input text matches a given regular expression (case sensitive) π₯
$ echo "myname" | c8y assert text --regex '.*name$'
π¦ SEE ALSO π¦
c8y-assert(1)β her big sister, go say hi π
π reminder bestie:--exactand--regexare case sensitive,--forcegets ignored when you use--confirm, and--maxJobs=0means unlimited β use with caution, ok?? i'm not gonna say it twice. π
k bye ily, this page is from Jan 1980 and it says c8y(1) at the bottom so you know it's the real one β see you in the next manpage, mwah πππ«Ά
π¦ where this page comes from
- nixpkgs unstable: go-c8y-cli 2.56.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms