Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
farshidtz committed Mar 14, 2023
1 parent 40c6994 commit 41d5484
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

try:
snapcraft try
snapcraft try --use-lxd
snap try prime

sync:
Expand All @@ -12,4 +12,4 @@ test:
./log \
./snapctl \
./env \
./options
./options
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ sudo edgex-snap-hooks.test ./snapctl -run TestGet

#### Development
```
SNAPCRAFT_BUILD_ENVIRONMENT=lxd make try
make try
```

You can now edit the files locally, copy them to prime directory, and re-run the
Expand Down
6 changes: 3 additions & 3 deletions snapctl/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# snapctl
Go wrapper library for the [snapctl](https://snapcraft.io/docs/using-snapctl) tool.

Wrappers for following subcommands are implemented:
Wrappers for following subcommands are partially implemented for EdgeX use cases:

- [ ] `fde-setup-request`: Obtain full disk encryption setup request
- [ ] `fde-setup-result`: Set result for full disk encryption
- [x] `get`: The get command prints configuration and interface connection settings.
- [ ] `is-connected`: Return success if the given plug or slot is connected, and failure otherwise
- [x] `is-connected`: Return success if the given plug or slot is connected, and failure otherwise
- [ ] `reboot`: Control the reboot behavior of the system
- [x] `restart`: Restart services
- [x] `services`: Query the status of services
Expand Down Expand Up @@ -96,4 +96,4 @@ func main() {
panic(err)
}
}
```
```
1 change: 0 additions & 1 deletion snapctl/is-connected.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ func (cmd isConnected) Run() (bool, error) {
args = append(args, cmd.plug)

out, err := run("is-connected", args...)

if err != nil && out == "" {
return false, nil
} else if err != nil {
Expand Down

0 comments on commit 41d5484

Please sign in to comment.