Skip to content

Commit

Permalink
docs: fix type in set sessions example
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenmiller committed Jun 7, 2024
1 parent a17f842 commit 4756fea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/go-c8y-cli/docs/cli/c8y/sessions/c8y_sessions_set.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ c8y sessions set [flags]
### Examples

```
$ eval $( c8y session set )
$ eval $( c8y sessions set )
Set a session interactively
$ eval $( c8y sessions set --sessionFilter "company dev" )
Expand Down
2 changes: 1 addition & 1 deletion docs/go-c8y-cli/docs/concepts/sessions.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ c8y sessions set --shell=auto --session "/my/path/session.json" | Out-String | I
</Tabs>

:::info
`set-session` is a small helper function (for each supported shell) which wraps the call to `c8y session set` and sets the returned environment variables which are then read by subsequent calls to `c8y`.
`set-session` is a small helper function (for each supported shell) which wraps the call to `c8y sessions set` and sets the returned environment variables which are then read by subsequent calls to `c8y`.
:::

### Switching session for a single command
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/sessions/set/set.manual.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func NewCmdSet(f *cmdutil.Factory) *CmdSet {
Short: "Set Cumulocity session",
Long: `Set a session, login and test the session and get either OAuth2 token, or using two factor authentication`,
Example: heredoc.Doc(`
$ eval $( c8y session set )
$ eval $( c8y sessions set )
Set a session interactively
$ eval $( c8y sessions set --sessionFilter "company dev" )
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/software/versions/create/create.manual.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ func (n *CreateCmd) RunE(cmd *cobra.Command, args []string) error {
var resp *c8y.Response
var respErr error
bounded := inputIterators.Total > 0
// TODO: Use new generic worker setup and execute both path and body!
for {
softwareID, _, err := path.Execute(false)
if err != nil {
Expand Down

0 comments on commit 4756fea

Please sign in to comment.