gcloud SDK: difference between command line interface and tools? - gcloud

After installing Google Cloud SDK, when I ran gcloud components list, I could see a component name called "BigQuery Command Line Tool" and "Cloud DNS Admin Command Line Interface"
Is there a distinction in the nature of command line tools vs interfaces?

Things labeled as "Command Line Tool" typically refer to standalone tools like the bq tool or the gsutil tool. Things labeled as "Command Line Interface" are functionality that get exposed through the unified gcloud tool.

Most of the time, the same functionality is available from gcloud SDK and the GUI interfaces, as they are frontends to the same APIs. Sometimes there are differences, though. There are operations which can only be performed or are only available in one of them, because the APIs are not exposed the same way in both.
The main difference is that the GUI tools are designed only for human usage, while the command line tools can be used programmatically too, due to the way they expose the APIs to the clients.

Related

Porting a pywinauto script from Windows to X11/Xlib

In my organization, I have been using pywinauto to automate some UI procedures that could not be done using the sole command line interface.
In an effort to move away from windows, I am evaluating the effort to port the UI automation script to a Linux environment (our tool has a Linux version, including a similar GUI).
I have had a look at the python-xlib project. But I have the feeling that it is more a framework to develop native X11 applications rather than perform tests on an existing application (I could not find anything like find_window etc...).
Do you have any advice for an X11 framework to automate UI procedures?
Based on several inputs, I finally came up with the following suggestions:
use pywinauto which has some beta level of Linux support (this support is based on pyatspi2).
use directly pyatspi2 to interact with the widgets if they are exposed. To browse through the exposed widgets of the application you want to automate, you can use accerciser.
finally, many framework exist to use only click + keys + mouse locations and are based on image comparison. There are many around, I have not yet tested any of them.
Finally, since my script is meant to run in a docker environment in CI, I installed Xvfb to run the automation in headless mode, without graphics HW.

Nifi rest command to create new processor group from nifi-registry?

I am trying to create a new Processor Group from the latest version of one of the Processor Groups in my Nifi-Registry. However, I want to do this via REST API, but I am not able to find the rest command that works.
As suggested online in one of the forums, I tried using chrome developer tools to check the REST calls, but when I use developer tools, the drag and drop feature does not work in the UI! I don't know what am I doing wrong in the developer tools.
There should be no reason why dev tools interferes with the application. Here is the request shown in dev tools when creating a PG and selecting to import from registry...
Here is the content of the request, it should be the same as creating a regular PG, except the version control information is specified:

Any disadvantage using Terminal as opposed to the deprecated GoogleAppEngineLauncher?

I'm doing Udacity's Web Development course. I've heard some users talk about Eclipse, but I'd rather have a basic understanding of the command line than move on to that higher level software.
Is there anything on a Mac that I can't do in Terminal that I could on Google App Engine Launcher?
Thank you.
The gcloud commands from the Cloud SDK provide much more control over your experience. The App Engine Launcher actually causes more problems than it helps with. In the long run, you're much better off with gcloud.
If you wanted to use an IDE, there are new plugins for Eclipse and IntelliJ. If you wanted to keep debugging simple, you could just use the command-line PDB debugger.

Fetch device logs using command line

I'm working on a project that uses Xcode developer and command line tools, but does not use the Xcode GUI. The procedures omit the GUI for procedural reasons due to the contract, so we can't use it.
We can build from the command line using xcodebuild, perform intermediate steps like codesign and lipo, and install and APP or IPA using fruitstrap or ideviceinstaller.
The program creates detailed logs, and the logs are used to attest to proper execution. Are there any tools to fetch the logs from the device once the program completes its task? (We've given up on Apple-only tools, so third party tools are OK).
Jeff

How to run windows command in client side(accessing client machine using browser)?

I found many questions about same issue in Stackoverflow. But could not find any satisfactory answers.
My problem is:
I have to run "iperf client" in client machine(assuming windows) using command line in client windows machine and get the statistics.
Currently my server is written in PHP(I am ready to shift to any platform) given that I shall be able to run iperf command on client machine.
I searched and found that, Java applet, ActiveX control or Plugins(like Google Talk plugin). Can someone suggest me the best and easiest approach here(with some reference links if possible).
You cannot run an arbitrary command on the client side using Native Client. What you can do is invoke Pepper API functions from your extension. Another thing you can do is access the Chrome extension API from Javascript. If none of these have the information you need, feel free to suggest new features on the native-client-discuss mailing list. Note that invoking "any Windows command" cannot be reasonably made part of a client-side application, due to security issues.